aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4function_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-11-02 19:23:46 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-05 22:23:25 +0100
commit3766c8abed05d34f5b187bc8deeec7a754f495eb (patch)
tree92a5623d4c7259bcc13e33c1887b9d33d054290d /src/qml/jsruntime/qv4function_p.h
parentcb7948caec77b282adabbbdc1a6900be5830021c (diff)
Remove code that's not required anymore
The StackSaver class is not required anymore, as we don't throw C++ exceptions anymore, and masm/moth generated code always cleans up the JS stack. Change-Id: If49d952230f8bd074f3b9353f56c07c8c5134752 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4function_p.h')
-rw-r--r--src/qml/jsruntime/qv4function_p.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/qml/jsruntime/qv4function_p.h b/src/qml/jsruntime/qv4function_p.h
index f29891e3b3..e9e59928ed 100644
--- a/src/qml/jsruntime/qv4function_p.h
+++ b/src/qml/jsruntime/qv4function_p.h
@@ -86,23 +86,6 @@ struct Function {
const CompiledData::Function *compiledFunction;
CompiledData::CompilationUnit *compilationUnit;
inline ReturnedValue code(ExecutionContext *ctx, const uchar *data) {
-
- struct StackSaver {
- ExecutionEngine *engine;
- SafeValue *stack;
-
- StackSaver(ExecutionEngine *engine)
- : engine(engine)
- , stack(engine->jsStackTop)
- {}
-
- ~StackSaver()
- {
- engine->jsStackTop = stack;
- }
- };
-
- StackSaver(ctx->engine);
return codePtr(ctx, data);
}