forked from qt-creator/qt-creator
CppTools: Remove unused members
Change-Id: Id8402ac62ea73b98a6ab1d641d45dff621a096c4 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -39,12 +39,9 @@ namespace {
|
||||
|
||||
class FindLocalSymbols: protected ASTVisitor
|
||||
{
|
||||
Scope *_functionScope;
|
||||
Document::Ptr _doc;
|
||||
|
||||
public:
|
||||
FindLocalSymbols(Document::Ptr doc)
|
||||
: ASTVisitor(doc->translationUnit()), _doc(doc)
|
||||
: ASTVisitor(doc->translationUnit())
|
||||
{ }
|
||||
|
||||
// local and external uses.
|
||||
@@ -59,12 +56,10 @@ public:
|
||||
|
||||
if (FunctionDefinitionAST *def = ast->asFunctionDefinition()) {
|
||||
if (def->symbol) {
|
||||
_functionScope = def->symbol;
|
||||
accept(ast);
|
||||
}
|
||||
} else if (ObjCMethodDeclarationAST *decl = ast->asObjCMethodDeclaration()) {
|
||||
if (decl->method_prototype->symbol) {
|
||||
_functionScope = decl->method_prototype->symbol;
|
||||
accept(ast);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user