Commit c0506785 authored by Christian Kamm's avatar Christian Kamm
Browse files

Drop snapshot argument from Bind constructor.

parent b102690b
...@@ -168,9 +168,8 @@ protected: ...@@ -168,9 +168,8 @@ protected:
} // end of anonymous namespace } // 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), : _doc(doc),
_snapshot(snapshot),
_interp(interp), _interp(interp),
_currentObjectValue(0), _currentObjectValue(0),
_typeEnvironment(0), _typeEnvironment(0),
...@@ -241,7 +240,7 @@ ObjectValue *Bind::scopeChainAt(Document::Ptr currentDocument, const Snapshot &s ...@@ -241,7 +240,7 @@ ObjectValue *Bind::scopeChainAt(Document::Ptr currentDocument, const Snapshot &s
QStringList localImports; QStringList localImports;
foreach (Document::Ptr doc, documentByPath.values(path)) { foreach (Document::Ptr doc, documentByPath.values(path)) {
Bind *newBind = new Bind(doc, snapshot, interp); Bind *newBind = new Bind(doc, interp);
binds += newBind; binds += newBind;
localImports += newBind->localImports(); localImports += newBind->localImports();
......
...@@ -45,7 +45,7 @@ class Link; ...@@ -45,7 +45,7 @@ class Link;
class QMLJS_EXPORT Bind: protected AST::Visitor class QMLJS_EXPORT Bind: protected AST::Visitor
{ {
protected: protected:
Bind(Document::Ptr doc, const Snapshot &snapshot, Interpreter::Engine *interp); Bind(Document::Ptr doc, Interpreter::Engine *interp);
public: public:
virtual ~Bind(); virtual ~Bind();
...@@ -84,7 +84,6 @@ protected: ...@@ -84,7 +84,6 @@ protected:
private: private:
Document::Ptr _doc; Document::Ptr _doc;
Snapshot _snapshot;
Interpreter::Engine *_interp; Interpreter::Engine *_interp;
Interpreter::ObjectValue *_currentObjectValue; Interpreter::ObjectValue *_currentObjectValue;
......
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