C++: Remove dead code in the parser

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

Change-Id: I062a4ae257b9c61f02bf85079feb6d48bd07c49e
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
Povilas Kanapickas
2014-01-15 10:29:07 +02:00
parent 3dbb1a9275
commit 9528230bd3
2 changed files with 0 additions and 19 deletions

View File

@@ -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();