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