Commit f5cad52a authored by Nikolai Kosjar's avatar Nikolai Kosjar

CppTools: Remove unused members

Change-Id: Id8402ac62ea73b98a6ab1d641d45dff621a096c4
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
parent 06e2c330
......@@ -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);
}
}
......
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