Parser
- Code cleanup of ::findTerminator.
This commit is contained in:
@@ -355,7 +355,6 @@ void Parser::findBinary ()
|
|||||||
// all args in the raw state.
|
// all args in the raw state.
|
||||||
void Parser::findTerminator ()
|
void Parser::findTerminator ()
|
||||||
{
|
{
|
||||||
context.debug ("Parser::findTerminator");
|
|
||||||
bool found = false;
|
bool found = false;
|
||||||
std::vector <Tree*> prune;
|
std::vector <Tree*> prune;
|
||||||
|
|
||||||
@@ -387,9 +386,6 @@ void Parser::findTerminator ()
|
|||||||
// Prune branches outside the loop.
|
// Prune branches outside the loop.
|
||||||
for (i = prune.begin (); i != prune.end (); ++i)
|
for (i = prune.begin (); i != prune.end (); ++i)
|
||||||
(*i)->removeAllBranches ();
|
(*i)->removeAllBranches ();
|
||||||
|
|
||||||
if (prune.size ())
|
|
||||||
context.debug (_tree->dump ());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user