Context: Removed unused ::clear method

This commit is contained in:
Paul Beckingham
2015-06-17 14:24:14 -07:00
parent 80052949d9
commit 49e7196dec
2 changed files with 0 additions and 25 deletions

View File

@@ -746,30 +746,6 @@ void Context::decomposeSortField (
}
}
////////////////////////////////////////////////////////////////////////////////
// Note: The reason some of these are commented out is because the ::clear
// method is not really "clear" but "clear_some". Some members do not need to
// be initialized. That makes this method something of a misnomer. So be it.
//
// TODO Is this method used anywhere?
void Context::clear ()
{
tdb2.clear ();
// Eliminate the command objects.
for (auto& cmd : commands)
delete cmd.second;
commands.clear ();
// Eliminate the column objects.
for (auto& col : columns)
delete col.second;
columns.clear ();
clearMessages ();
}
////////////////////////////////////////////////////////////////////////////////
// This capability is to answer the question of 'what did I just do to generate
// this output?'.