From c0506785bfb7668472cdeabbbfd8daf43e80fed6 Mon Sep 17 00:00:00 2001 From: Christian Kamm <christian.d.kamm@nokia.com> Date: Tue, 2 Feb 2010 11:32:25 +0100 Subject: [PATCH] Drop snapshot argument from Bind constructor. --- src/libs/qmljs/qmljsbind.cpp | 5 ++--- src/libs/qmljs/qmljsbind.h | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/libs/qmljs/qmljsbind.cpp b/src/libs/qmljs/qmljsbind.cpp index 5557f6317a0..bdd626e22e5 100644 --- a/src/libs/qmljs/qmljsbind.cpp +++ b/src/libs/qmljs/qmljsbind.cpp @@ -168,9 +168,8 @@ protected: } // end of anonymous namespace -Bind::Bind(Document::Ptr doc, const Snapshot &snapshot, Interpreter::Engine *interp) +Bind::Bind(Document::Ptr doc, Interpreter::Engine *interp) : _doc(doc), - _snapshot(snapshot), _interp(interp), _currentObjectValue(0), _typeEnvironment(0), @@ -241,7 +240,7 @@ ObjectValue *Bind::scopeChainAt(Document::Ptr currentDocument, const Snapshot &s QStringList localImports; foreach (Document::Ptr doc, documentByPath.values(path)) { - Bind *newBind = new Bind(doc, snapshot, interp); + Bind *newBind = new Bind(doc, interp); binds += newBind; localImports += newBind->localImports(); diff --git a/src/libs/qmljs/qmljsbind.h b/src/libs/qmljs/qmljsbind.h index 95dcbab1108..f9f35cbdc23 100644 --- a/src/libs/qmljs/qmljsbind.h +++ b/src/libs/qmljs/qmljsbind.h @@ -45,7 +45,7 @@ class Link; class QMLJS_EXPORT Bind: protected AST::Visitor { protected: - Bind(Document::Ptr doc, const Snapshot &snapshot, Interpreter::Engine *interp); + Bind(Document::Ptr doc, Interpreter::Engine *interp); public: virtual ~Bind(); @@ -84,7 +84,6 @@ protected: private: Document::Ptr _doc; - Snapshot _snapshot; Interpreter::Engine *_interp; Interpreter::ObjectValue *_currentObjectValue; -- GitLab