mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Parser
- No point checking return value of 'new' operator, because it throws.
This commit is contained in:
parent
4513248360
commit
9b7fa8b7ec
1 changed files with 0 additions and 6 deletions
|
@ -637,9 +637,6 @@ Tree* Parser::captureFirst (const std::string& arg)
|
|||
{
|
||||
// Insert the arg as the new first branch.
|
||||
Tree* t = new Tree ("argIns");
|
||||
if (!t)
|
||||
throw std::string (STRING_ERROR_MEMORY);
|
||||
|
||||
t->attribute ("raw", arg);
|
||||
t->tag ("?");
|
||||
t->_trunk = _tree;
|
||||
|
@ -660,9 +657,6 @@ Tree* Parser::captureLast (const std::string& arg)
|
|||
{
|
||||
// Insert the arg as the new first branch.
|
||||
Tree* t = new Tree ("argIns");
|
||||
if (!t)
|
||||
throw std::string (STRING_ERROR_MEMORY);
|
||||
|
||||
t->attribute ("raw", arg);
|
||||
t->tag ("?");
|
||||
t->_trunk = _tree;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue