From cefaaf4cfcd8e4f75539d303ac10185427e193a8 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Tue, 4 Aug 2009 16:56:09 +0200 Subject: remove unused code --- src/script/api/qscriptengine.cpp | 5 ----- src/script/api/qscriptengine_p.h | 1 - src/script/bridge/qscriptfunction.cpp | 1 - 3 files changed, 7 deletions(-) diff --git a/src/script/api/qscriptengine.cpp b/src/script/api/qscriptengine.cpp index 3378da9..9fba7cb 100644 --- a/src/script/api/qscriptengine.cpp +++ b/src/script/api/qscriptengine.cpp @@ -795,7 +795,6 @@ QScriptPushScopeHelper::~QScriptPushScopeHelper() exec->setScopeChain(exec->scopeChain()->pop()); exec->scopeChain()->deref(); engine->currentFrame = previousFrame; - engine->releaseContextForFrame(exec); } } // namespace QScript @@ -1027,9 +1026,6 @@ QScriptContext *QScriptEnginePrivate::contextForFrame(JSC::ExecState *frame) return reinterpret_cast(frame); } -void QScriptEnginePrivate::releaseContextForFrame(JSC::ExecState *frame) -{ -} JSC::JSGlobalObject *QScriptEnginePrivate::originalGlobalObject() const { @@ -2248,7 +2244,6 @@ void QScriptEngine::popContext() JSC::RegisterFile ®isterFile = d->currentFrame->interpreter()->registerFile(); JSC::Register *const newEnd = d->currentFrame->registers() - JSC::RegisterFile::CallFrameHeaderSize - d->currentFrame->argumentCount(); d->currentFrame->scopeChain()->pop()->deref(); - d->releaseContextForFrame(d->currentFrame); d->currentFrame = d->currentFrame->callerFrame(); registerFile.shrink(newEnd); #ifndef Q_SCRIPT_NO_EVENT_NOTIFY diff --git a/src/script/api/qscriptengine_p.h b/src/script/api/qscriptengine_p.h index cb56cae..614341b 100644 --- a/src/script/api/qscriptengine_p.h +++ b/src/script/api/qscriptengine_p.h @@ -146,7 +146,6 @@ public: void setDefaultPrototype(int metaTypeId, JSC::JSValue prototype); QScriptContext *contextForFrame(JSC::ExecState *frame); - void releaseContextForFrame(JSC::ExecState *frame); JSC::JSGlobalObject *originalGlobalObject() const; JSC::JSObject *getOriginalGlobalObjectProxy(); diff --git a/src/script/bridge/qscriptfunction.cpp b/src/script/bridge/qscriptfunction.cpp index d51147a..04c1abd 100644 --- a/src/script/bridge/qscriptfunction.cpp +++ b/src/script/bridge/qscriptfunction.cpp @@ -142,7 +142,6 @@ JSC::JSValue FunctionWithArgWrapper::proxyCall(JSC::ExecState *exec, JSC::JSObje { FunctionWithArgWrapper *self = static_cast(callee); QScriptEnginePrivate *eng_p = QScriptEnginePrivate::get(self->data->engine); - QScriptContext *ctx = eng_p->contextForFrame(exec); //We might have nested eval inside our function so we should create another scope QScriptPushScopeHelper scope(exec); -- cgit v0.12