mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Context: Removed unused ::clear method
This commit is contained in:
parent
80052949d9
commit
49e7196dec
2 changed files with 0 additions and 25 deletions
|
@ -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 capability is to answer the question of 'what did I just do to generate
|
||||||
// this output?'.
|
// this output?'.
|
||||||
|
|
|
@ -68,7 +68,6 @@ public:
|
||||||
void debug (const std::string&); // Debug message sink
|
void debug (const std::string&); // Debug message sink
|
||||||
void error (const std::string&); // Error message sink - non-maskable
|
void error (const std::string&); // Error message sink - non-maskable
|
||||||
void clearMessages ();
|
void clearMessages ();
|
||||||
void clear ();
|
|
||||||
|
|
||||||
void decomposeSortField (const std::string&, std::string&, bool&, bool&);
|
void decomposeSortField (const std::string&, std::string&, bool&, bool&);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue