From b9a1ebc39336f446d9dccf963e572d6e56cb50c6 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 20 Jun 2015 09:31:19 -0700 Subject: [PATCH] CLI2: Removed unused ::getFilter method --- src/CLI2.cpp | 37 ------------------------------------- src/CLI2.h | 1 - 2 files changed, 38 deletions(-) diff --git a/src/CLI2.cpp b/src/CLI2.cpp index 870f0b824..83f656415 100644 --- a/src/CLI2.cpp +++ b/src/CLI2.cpp @@ -492,43 +492,6 @@ void CLI2::addRawFilter (const std::string& arg) while (lex.token (lexeme, type)) add (lexeme); } - -//////////////////////////////////////////////////////////////////////////////// -// Extract all the FILTER-tagged items. -const std::string CLI2::getFilter (bool applyContext) -{ - // Handle context setting - // Commands that don't want to respect current context should leverage - // the applyContext argument - if (applyContext) - addContextFilter (); - - std::string filter = ""; - if (_args.size ()) - { - for (auto& a : _args) - { - if (a.hasTag ("FILTER")) - { - if (filter != "") - filter += ' '; - - std::string term = a.attribute ("name"); - if (term == "") - term = a.attribute ("raw"); - - filter += term; - } - } - - // Only apply parentheses for non-trivial filters. - if (filter != "") - filter = "( " + filter + " )"; - } - - context.debug("CLI2: Derived filter: '" + filter + "'"); - return filter; -} */ //////////////////////////////////////////////////////////////////////////////// diff --git a/src/CLI2.h b/src/CLI2.h index a76c955b0..2b20ee649 100644 --- a/src/CLI2.h +++ b/src/CLI2.h @@ -84,7 +84,6 @@ public: /* void addContextFilter (); void addRawFilter (const std::string& arg); - const std::string getFilter (bool applyContext = true); */ void prepareFilter (bool applyContext = true); const std::vector getWords (bool filtered = true);