Commit 7c629019 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Removed unused method Parser::maybeFunctionCall()

parent 3ec7f9d3
...@@ -1999,44 +1999,6 @@ bool Parser::parseReturnStatement(StatementAST *&node) ...@@ -1999,44 +1999,6 @@ bool Parser::parseReturnStatement(StatementAST *&node)
return false; return false;
} }
bool Parser::maybeFunctionCall(SimpleDeclarationAST *simpleDecl) const
{
if (! simpleDecl)
return false;
else if (! simpleDecl->decl_specifier_seq)
return false;
else if (simpleDecl->decl_specifier_seq->next)
return false;
NamedTypeSpecifierAST *type_spec = simpleDecl->decl_specifier_seq->asNamedTypeSpecifier();
if (! type_spec)
return false;
DeclaratorListAST *first_declarator = simpleDecl->declarators;
if (! first_declarator)
return false;
else if (first_declarator->next)
return false;
DeclaratorAST *declarator = first_declarator->declarator;
if (! declarator)
return false;
else if (declarator->ptr_operators)
return false;
else if (declarator->postfix_declarators)
return false;
else if (declarator->initializer)
return false;
else if (! declarator->core_declarator)
return false;
NestedDeclaratorAST *nested_declarator = declarator->core_declarator->asNestedDeclarator();
if (! nested_declarator)
return false;
return true;
}
bool Parser::maybeSimpleExpression(SimpleDeclarationAST *simpleDecl) const bool Parser::maybeSimpleExpression(SimpleDeclarationAST *simpleDecl) const
{ {
if (! simpleDecl->declarators) { if (! simpleDecl->declarators) {
......
...@@ -265,7 +265,6 @@ public: ...@@ -265,7 +265,6 @@ public:
void match(int kind, unsigned *token); void match(int kind, unsigned *token);
bool maybeAmbiguousStatement(DeclarationStatementAST *ast) const; bool maybeAmbiguousStatement(DeclarationStatementAST *ast) const;
bool maybeFunctionCall(SimpleDeclarationAST *simpleDecl) const;
bool maybeSimpleExpression(SimpleDeclarationAST *simpleDecl) const; bool maybeSimpleExpression(SimpleDeclarationAST *simpleDecl) const;
bool maybeForwardOrClassDeclaration(SpecifierAST *decl_specifier_seq) const; bool maybeForwardOrClassDeclaration(SpecifierAST *decl_specifier_seq) const;
bool isPointerDeclaration(DeclarationStatementAST *ast) 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