Commit 8f4bdd53 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Removed unused method Parser::maybeSimpleExpression()

parent 7c629019
......@@ -1999,18 +1999,6 @@ bool Parser::parseReturnStatement(StatementAST *&node)
return false;
}
bool Parser::maybeSimpleExpression(SimpleDeclarationAST *simpleDecl) const
{
if (! simpleDecl->declarators) {
SpecifierAST *spec = simpleDecl->decl_specifier_seq;
if (spec && ! spec->next && spec->asNamedTypeSpecifier())
return true;
}
return false;
}
bool Parser::isPointerDeclaration(DeclarationStatementAST *ast) const
{
if (! ast)
......
......@@ -265,7 +265,6 @@ public:
void match(int kind, unsigned *token);
bool maybeAmbiguousStatement(DeclarationStatementAST *ast) const;
bool maybeSimpleExpression(SimpleDeclarationAST *simpleDecl) const;
bool maybeForwardOrClassDeclaration(SpecifierAST *decl_specifier_seq) const;
bool isPointerDeclaration(DeclarationStatementAST *ast) const;
......
Markdown is supported
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