Remove unused overload of newCallContext()
authorLars Knoll <lars.knoll@digia.com>
Sat, 17 Aug 2013 11:14:51 +0000 (13:14 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 17 Aug 2013 13:24:56 +0000 (15:24 +0200)
Change-Id: I9b9de585b18bf87ea256db36b320a7defdcc4ac8
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/jsruntime/qv4engine.cpp
src/qml/jsruntime/qv4engine_p.h

index ddeb20a..45a289f 100644 (file)
@@ -327,16 +327,6 @@ CatchContext *ExecutionEngine::newCatchContext(String *exceptionVarName, const V
     return c;
 }
 
-CallContext *ExecutionEngine::newCallContext(FunctionObject *f, const Value &thisObject, Value *args, int argc)
-{
-    CallContext *c = static_cast<CallContext *>(memoryManager->allocContext(requiredMemoryForExecutionContect(f, argc)));
-    ExecutionContext *p = current;
-    current = c;
-    c->initCallContext(p, f, args, argc, thisObject);
-
-    return c;
-}
-
 CallContext *ExecutionEngine::newQmlContext(FunctionObject *f, Object *qml)
 {
     CallContext *c = static_cast<CallContext *>(memoryManager->allocContext(requiredMemoryForExecutionContect(f, 0)));
index 3dbab04..5ca13cd 100644 (file)
@@ -234,7 +234,6 @@ struct Q_QML_EXPORT ExecutionEngine
 
     WithContext *newWithContext(Object *with);
     CatchContext *newCatchContext(String* exceptionVarName, const QV4::Value &exceptionValue);
-    CallContext *newCallContext(FunctionObject *f, const QV4::Value &thisObject, QV4::Value *args, int argc);
     CallContext *newCallContext(void *stackSpace, FunctionObject *f, const QV4::Value &thisObject, QV4::Value *args, int argc);
     CallContext *newQmlContext(FunctionObject *f, Object *qml);
     ExecutionContext *pushGlobalContext();