- ::clear now calls Parser::clear, which prevents the parse tree from growing
  with every shell command.
This commit is contained in:
Paul Beckingham 2014-06-03 01:31:25 -04:00
parent 512fe2f6c7
commit 850dbb36f0

View file

@ -696,8 +696,7 @@ void Context::decomposeSortField (
void Context::clear () void Context::clear ()
{ {
tdb2.clear (); tdb2.clear ();
parser.clear ();
// TODO parser.clear (); ?
// Eliminate the command objects. // Eliminate the command objects.
std::map <std::string, Command*>::iterator com; std::map <std::string, Command*>::iterator com;
@ -712,7 +711,6 @@ void Context::clear ()
delete col->second; delete col->second;
columns.clear (); columns.clear ();
clearMessages (); clearMessages ();
} }