aboutsummaryrefslogtreecommitdiffstats
path: root/qmljs_runtime.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2012-11-15 12:11:38 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2012-11-15 13:39:16 +0100
commit1cbec5b889fb29732337c4db3f3f1fef1241f65b (patch)
treef20d09f3eb8d175f3bb6bc575104f298bbee5170 /qmljs_runtime.cpp
parent559115fc6320ebc1d376da111d92c3f0d262e9d5 (diff)
Remove unused variable and method
Change-Id: I357f3062f58e76c1749c9818426be5c0eedf3327 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'qmljs_runtime.cpp')
-rw-r--r--qmljs_runtime.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/qmljs_runtime.cpp b/qmljs_runtime.cpp
index 668be71532..47e5dffa29 100644
--- a/qmljs_runtime.cpp
+++ b/qmljs_runtime.cpp
@@ -243,7 +243,6 @@ void Context::init(ExecutionEngine *eng)
formalCount = 0;
vars = 0;
varCount = 0;
- calledAsConstructor = false;
}
PropertyDescriptor *Context::lookupPropertyDescriptor(String *name, PropertyDescriptor *tmp)
@@ -330,7 +329,6 @@ void Context::initCallContext(Context *parent, const Value *object, FunctionObje
vars = f->varList;
varCount = f->varCount;
locals = varCount ? new Value[varCount] : 0;
- calledAsConstructor = false;
if (varCount)
std::fill(locals, locals + varCount, Value::undefinedValue());
}
@@ -346,7 +344,6 @@ void Context::leaveCallContext()
void Context::initConstructorContext(Context *parent, Value *object, FunctionObject *f, Value *args, unsigned argc)
{
initCallContext(parent, object, f, args, argc);
- calledAsConstructor = true;
}
void Context::leaveConstructorContext(FunctionObject *f)