diff --git a/src/commands/CmdCustom.cpp b/src/commands/CmdCustom.cpp index f0beabfd6..371030fdb 100644 --- a/src/commands/CmdCustom.cpp +++ b/src/commands/CmdCustom.cpp @@ -86,19 +86,10 @@ int CmdCustom::execute (std::string& output) Lexer::Type type; Lexer lex (reportFilter); lex.ambiguity (false); - std::vector filterArgs; while (lex.token (lexeme, type)) - { - filterArgs.push_back (lexeme); context.cli.add (lexeme); - } - - std::vector ::reverse_iterator arg; - for (arg = filterArgs.rbegin (); arg != filterArgs.rend (); ++ arg) - context.parser.captureFirst (*arg); // Reparse after tree change. - context.parser.parse (); context.cli.analyze (); // Apply filter.