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