From 49e7196dec1bca84f69445f2fac3fbaf56d10dce Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 17 Jun 2015 14:24:14 -0700 Subject: [PATCH] Context: Removed unused ::clear method --- src/Context.cpp | 24 ------------------------ src/Context.h | 1 - 2 files changed, 25 deletions(-) diff --git a/src/Context.cpp b/src/Context.cpp index 88d36de65..e17166167 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -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?'. diff --git a/src/Context.h b/src/Context.h index dfd5880c9..08370f0bb 100644 --- a/src/Context.h +++ b/src/Context.h @@ -68,7 +68,6 @@ public: void debug (const std::string&); // Debug message sink void error (const std::string&); // Error message sink - non-maskable void clearMessages (); - void clear (); void decomposeSortField (const std::string&, std::string&, bool&, bool&);