forked from qt-creator/qt-creator
QmlJS: Remove unused function environment from binder.
This used to contain all functions declared in Script blocks. With them gone, there's no reason to keep it.
This commit is contained in:
@@ -43,7 +43,6 @@ Bind::Bind(Document *doc)
|
||||
: _doc(doc),
|
||||
_currentObjectValue(0),
|
||||
_idEnvironment(0),
|
||||
_functionEnvironment(0),
|
||||
_rootObjectValue(0)
|
||||
{
|
||||
if (_doc)
|
||||
@@ -79,11 +78,6 @@ Interpreter::ObjectValue *Bind::idEnvironment() const
|
||||
return _idEnvironment;
|
||||
}
|
||||
|
||||
Interpreter::ObjectValue *Bind::functionEnvironment() const
|
||||
{
|
||||
return _functionEnvironment;
|
||||
}
|
||||
|
||||
Interpreter::ObjectValue *Bind::rootObjectValue() const
|
||||
{
|
||||
return _rootObjectValue;
|
||||
@@ -175,7 +169,6 @@ void Bind::accept(Node *node)
|
||||
bool Bind::visit(AST::UiProgram *)
|
||||
{
|
||||
_idEnvironment = _engine.newObject(/*prototype =*/ 0);
|
||||
_functionEnvironment = _engine.newObject(/*prototype =*/ 0);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user