Commit b7cbc9b0 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Removed methods which always returned a constant (false).

parent 4ec51219
......@@ -311,8 +311,7 @@ protected:
Value rhs = _value;
for (int LA_token_kind = (*_lex)->kind(), LA_precedence = precedence(LA_token_kind);
LA_precedence > operPrecedence && isBinaryOperator(LA_token_kind)
|| LA_precedence == operPrecedence && isRightAssoc(LA_token_kind);
LA_precedence > operPrecedence && isBinaryOperator(LA_token_kind);
LA_token_kind = (*_lex)->kind(), LA_precedence = precedence(LA_token_kind)) {
rhs = process_expression_with_operator_precedence(rhs, LA_precedence);
}
......@@ -425,9 +424,6 @@ private:
}
}
static inline bool isRightAssoc(int /*tokenKind*/)
{ return false; }
private:
Client *client;
Environment *env;
......
......@@ -148,11 +148,6 @@ inline bool isBinaryOperator(int tokenKind)
}
}
inline bool isRightAssoc(int /*tokenKind*/)
{
return false;
}
} // end of anonymous namespace
#ifndef CPLUSPLUS_NO_DEBUG_RULE
......@@ -4390,8 +4385,7 @@ void Parser::parseExpressionWithOperatorPrecedence(ExpressionAST *&lhs, int minP
return;
for (int tokenKindAhead = tok().kind(), precedenceAhead = precedence(tokenKindAhead, _templateArguments);
precedenceAhead > operPrecedence && isBinaryOperator(tokenKindAhead)
|| precedenceAhead == operPrecedence && isRightAssoc(tokenKindAhead);
precedenceAhead > operPrecedence && isBinaryOperator(tokenKindAhead);
tokenKindAhead = tok().kind(), precedenceAhead = precedence(tokenKindAhead, _templateArguments)) {
parseExpressionWithOperatorPrecedence(rhs, precedenceAhead);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment