diff --git a/src/libs/cplusplus/ResolveExpression.cpp b/src/libs/cplusplus/ResolveExpression.cpp index 306d6875b8c8cd92456800bd9eb5a6ce02f3de97..83082853176b5c917ea8a5cd26b1b247e56ce588 100644 --- a/src/libs/cplusplus/ResolveExpression.cpp +++ b/src/libs/cplusplus/ResolveExpression.cpp @@ -203,9 +203,7 @@ ResolveExpression::ResolveExpression(const LookupContext &context) : ASTVisitor(context.expressionDocument()->control()), _context(context), sem(_context.control()) -{ - _wantReferences = false; -} +{ } ResolveExpression::~ResolveExpression() { } diff --git a/src/libs/cplusplus/ResolveExpression.h b/src/libs/cplusplus/ResolveExpression.h index 67f239aa3643eb308ec2625981c7708a660b8d39..f548e9a15c5f976f5886c088200a5ce661876f84 100644 --- a/src/libs/cplusplus/ResolveExpression.h +++ b/src/libs/cplusplus/ResolveExpression.h @@ -47,21 +47,6 @@ public: ResolveExpression(const LookupContext &context); virtual ~ResolveExpression(); - bool wantReferences() const - { return _wantReferences; } - - void setWantReferences(bool onoff) - { _wantReferences = onoff; } - - void setDeclSymbol(Symbol *symbol) - { - references.clear(); - _wantReferences = true; - _declSymbol = symbol; - } - - QList<unsigned> references; - QList<Result> operator()(ExpressionAST *ast); QList<Result> resolveMemberExpression(const QList<Result> &baseResults, @@ -138,7 +123,6 @@ private: LookupContext _context; Semantic sem; QList<Result> _results; - bool _wantReferences; Symbol *_declSymbol; };