From 1622c862890d9048dcf138d20ab9e4443e991cc6 Mon Sep 17 00:00:00 2001
From: Roberto Raggi <roberto.raggi@nokia.com>
Date: Tue, 25 Aug 2009 10:12:37 +0200
Subject: [PATCH] Removed references and wantReferences from ResolveExpression.

---
 src/libs/cplusplus/ResolveExpression.cpp |  4 +---
 src/libs/cplusplus/ResolveExpression.h   | 16 ----------------
 2 files changed, 1 insertion(+), 19 deletions(-)

diff --git a/src/libs/cplusplus/ResolveExpression.cpp b/src/libs/cplusplus/ResolveExpression.cpp
index 306d6875b8c..83082853176 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 67f239aa364..f548e9a15c5 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;
 };
 
-- 
GitLab