Eval: Removed ::ambiguity

This commit is contained in:
Paul Beckingham 2015-07-01 17:54:36 -04:00
parent 987fab388d
commit 6276241ef0
2 changed files with 1 additions and 11 deletions

View file

@ -104,8 +104,7 @@ static bool namedConstants (const std::string& name, Variant& value)
////////////////////////////////////////////////////////////////////////////////
Eval::Eval ()
: _ambiguity (true)
, _debug (false)
: _debug (false)
{
addSource (namedConstants);
}
@ -219,12 +218,6 @@ void Eval::evaluateCompiledExpression (Variant& v)
evaluatePostfixStack (_compiled, v);
}
////////////////////////////////////////////////////////////////////////////////
void Eval::ambiguity (bool value)
{
_ambiguity = value;
}
////////////////////////////////////////////////////////////////////////////////
void Eval::debug (bool value)
{
@ -418,7 +411,6 @@ void Eval::evaluatePostfixStack (
/*
case Lexer::Type::uuid:
case Lexer::Type::hex:
case Lexer::Type::list:
case Lexer::Type::url:
case Lexer::Type::pair:
case Lexer::Type::separator:

View file

@ -47,7 +47,6 @@ public:
void compileExpression (const std::string&);
void compileExpression (const std::vector <std::pair <std::string, Lexer::Type>>&);
void evaluateCompiledExpression (Variant&);
void ambiguity (bool);
void debug (bool);
static std::vector <std::string> getOperators ();
@ -73,7 +72,6 @@ private:
private:
std::vector <bool (*)(const std::string&, Variant&)> _sources;
bool _ambiguity;
bool _debug;
std::vector <std::pair <std::string, Lexer::Type>> _compiled;
};