- No point checking return value of 'new' operator, because it throws.
This commit is contained in:
Paul Beckingham 2014-10-07 23:12:03 -04:00
parent 4513248360
commit 9b7fa8b7ec

View file

@ -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;