forked from qt-creator/qt-creator
QmlJS: Remove unused code.
Change-Id: Ic6e7f46a3a7155a1ab41c41e4d9ee9d4832c3717 Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
This commit is contained in:
committed by
Leandro Melo
parent
56bf0e3023
commit
d719489009
@@ -44,7 +44,6 @@ Evaluate::Evaluate(const ScopeChain *scopeChain, ReferenceContext *referenceCont
|
||||
_context(scopeChain->context()),
|
||||
_referenceContext(referenceContext),
|
||||
_scopeChain(scopeChain),
|
||||
_scope(_valueOwner->globalObject()),
|
||||
_result(0)
|
||||
{
|
||||
}
|
||||
@@ -95,13 +94,6 @@ const Value *Evaluate::switchResult(const Value *result)
|
||||
return previousResult;
|
||||
}
|
||||
|
||||
const ObjectValue *Evaluate::switchScope(const ObjectValue *scope)
|
||||
{
|
||||
const ObjectValue *previousScope = _scope;
|
||||
_scope = scope;
|
||||
return previousScope;
|
||||
}
|
||||
|
||||
void Evaluate::accept(AST::Node *node)
|
||||
{
|
||||
AST::Node::accept(node, this);
|
||||
|
@@ -64,7 +64,6 @@ protected:
|
||||
void accept(AST::Node *node);
|
||||
|
||||
const Value *switchResult(const Value *result);
|
||||
const ObjectValue *switchScope(const ObjectValue *scope);
|
||||
|
||||
// Ui
|
||||
virtual bool visit(AST::UiProgram *ast);
|
||||
@@ -166,7 +165,6 @@ private:
|
||||
ContextPtr _context;
|
||||
ReferenceContext *_referenceContext;
|
||||
const ScopeChain *_scopeChain;
|
||||
const ObjectValue *_scope;
|
||||
const Value *_result;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user