diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-03-12 15:06:55 -0400 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-03-13 07:08:54 +0100 |
commit | cf9bbdc72929746ac71a7c9712e7cf7eb8dcc594 (patch) | |
tree | 840addde38b24964e3b96a1299055ba01f9101f2 /src | |
parent | d24239d1ff5b13a18367620d6ae4181c4f299ec3 (diff) |
Remove unused method
The method was only used to destroy the global context
and it's usage was wrong and needless there.
Change-Id: If97a0c94862b5f7f7ac4dff5ccb58dc2ef8cec4b
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/v4/qmljs_engine.cpp | 1 | ||||
-rw-r--r-- | src/v4/qmljs_environment.cpp | 6 | ||||
-rw-r--r-- | src/v4/qmljs_environment.h | 1 |
3 files changed, 0 insertions, 8 deletions
diff --git a/src/v4/qmljs_engine.cpp b/src/v4/qmljs_engine.cpp index 7ad42c154a..0663cdb37b 100644 --- a/src/v4/qmljs_engine.cpp +++ b/src/v4/qmljs_engine.cpp @@ -238,7 +238,6 @@ ExecutionEngine::ExecutionEngine(EvalISelFactory *factory) ExecutionEngine::~ExecutionEngine() { delete globalObject.asObject(); - rootContext->destroy(); delete rootContext; UnwindHelper::deregisterFunctions(functions); qDeleteAll(functions); diff --git a/src/v4/qmljs_environment.cpp b/src/v4/qmljs_environment.cpp index 8aa5457aec..09e8783902 100644 --- a/src/v4/qmljs_environment.cpp +++ b/src/v4/qmljs_environment.cpp @@ -279,12 +279,6 @@ void ExecutionContext::initForCatch(ExecutionContext *p, String *exceptionVarNam withObject = 0; } -void ExecutionContext::destroy() -{ - delete[] arguments; - delete[] locals; -} - bool ExecutionContext::deleteProperty(String *name) { bool hasWith = false; diff --git a/src/v4/qmljs_environment.h b/src/v4/qmljs_environment.h index d496255bb4..453ca9705e 100644 --- a/src/v4/qmljs_environment.h +++ b/src/v4/qmljs_environment.h @@ -105,7 +105,6 @@ struct ExecutionContext void init(ExecutionEngine *e); void init(ExecutionContext *p, Object *with); void initForCatch(ExecutionContext *p, String *exceptionVarName, const QQmlJS::VM::Value &exceptionValue); - void destroy(); bool hasBinding(String *name) const; void createMutableBinding(String *name, bool deletable); |