CLI2: Removed unnecessary processing of filter

This commit is contained in:
Paul Beckingham
2015-09-11 08:44:39 -04:00
parent 442ef6a29b
commit 2bdaa37e32

View File

@@ -555,9 +555,9 @@ void CLI2::analyze ()
// Process raw string.
void CLI2::addFilter (const std::string& arg)
{
std::vector <std::string> filter;
if (arg.length ())
{
std::vector <std::string> filter;
filter.push_back ("(");
std::string lexeme;
@@ -567,12 +567,11 @@ void CLI2::addFilter (const std::string& arg)
while (lex.token (lexeme, type))
filter.push_back (lexeme);
if (arg.length ())
filter.push_back (")");
add (filter);
analyze ();
}
}
////////////////////////////////////////////////////////////////////////////////
// There are situations where a context filter is applied. This method