diff --git a/src/Eval.cpp b/src/Eval.cpp index ad46ef6a9..2a27b89b7 100644 --- a/src/Eval.cpp +++ b/src/Eval.cpp @@ -165,33 +165,6 @@ void Eval::evaluatePostfixExpression (const std::string& e, Variant& v) const evaluatePostfixStack (tokens, v); } -//////////////////////////////////////////////////////////////////////////////// -void Eval::compileExpression (const std::string& e) -{ - // Reduce e to a vector of tokens. - Lexer l (e); - std::string token; - Lexer::Type type; - while (l.token (token, type)) - { - if (_debug) - context.debug ("Lexer '" + token + "' " + Lexer::typeToString (type)); - _compiled.push_back (std::pair (token, type)); - } - - // Parse for syntax checking and operator replacement. - if (_debug) - context.debug ("FILTER Infix " + dump (_compiled)); - infixParse (_compiled); - if (_debug) - context.debug ("FILTER Infix parsed " + dump (_compiled)); - - // Convert infix --> postfix. - infixToPostfix (_compiled); - if (_debug) - context.debug ("FILTER Postfix " + dump (_compiled)); -} - //////////////////////////////////////////////////////////////////////////////// void Eval::compileExpression ( const std::vector >& precompiled) diff --git a/src/Eval.h b/src/Eval.h index c39ac3a93..5a7faf43e 100644 --- a/src/Eval.h +++ b/src/Eval.h @@ -44,7 +44,6 @@ public: void addSource (bool (*fn)(const std::string&, Variant&)); void evaluateInfixExpression (const std::string&, Variant&) const; void evaluatePostfixExpression (const std::string&, Variant&) const; - void compileExpression (const std::string&); void compileExpression (const std::vector >&); void evaluateCompiledExpression (Variant&); void debug (bool);