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:
} // 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();
......
......@@ -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;
......
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