Commit 9528230b authored by Povilas Kanapickas's avatar Povilas Kanapickas
Browse files

C++: Remove dead code in the parser



CPlusPlus::Parser::parseAccessSpecifier() is not used anywhere
throughout the QtCreator codebase.

Change-Id: I062a4ae257b9c61f02bf85079feb6d48bd07c49e
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
parent 3dbb1a92
......@@ -2082,24 +2082,6 @@ bool Parser::parseClassSpecifier(SpecifierListAST *&node)
return parsed;
}
bool Parser::parseAccessSpecifier(SpecifierAST *&node)
{
DEBUG_THIS_RULE();
switch (LA()) {
case T_PUBLIC:
case T_PROTECTED:
case T_PRIVATE: {
SimpleSpecifierAST *ast = new (_pool) SimpleSpecifierAST;
ast->specifier_token = consumeToken();
node = ast;
return true;
}
default:
return false;
} // switch
}
bool Parser::parseAccessDeclaration(DeclarationAST *&node)
{
DEBUG_THIS_RULE();
......
......@@ -39,7 +39,6 @@ public:
bool parseTranslationUnit(TranslationUnitAST *&node);
public:
bool parseAccessSpecifier(SpecifierAST *&node);
bool parseExpressionList(ExpressionListAST *&node);
bool parseAbstractCoreDeclarator(DeclaratorAST *&node, SpecifierListAST *decl_specifier_list);
bool parseAbstractDeclarator(DeclaratorAST *&node, SpecifierListAST *decl_specifier_list);
......
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