aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@theqtcompany.com>2014-11-27 15:45:02 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2014-12-03 08:28:18 +0100
commitb970c579163c317e1d5aa881507c029a15800746 (patch)
treef2d8da1594b9ab5812102d719b5f752a1495c180 /src
parentb34e6717fa8b9e84390eeff4e853a18ce142434e (diff)
Remove dead code
The eval code tracking was used last time for the old exception handling, but that's long gone :) Change-Id: I6fa80a5197745fde461e4da66cd65a50149c6048 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/qml/jsruntime/qv4context_p.h9
-rw-r--r--src/qml/jsruntime/qv4globalobject.cpp5
2 files changed, 0 insertions, 14 deletions
diff --git a/src/qml/jsruntime/qv4context_p.h b/src/qml/jsruntime/qv4context_p.h
index 74530e7ae9..6d95f039c5 100644
--- a/src/qml/jsruntime/qv4context_p.h
+++ b/src/qml/jsruntime/qv4context_p.h
@@ -73,11 +73,6 @@ struct Q_QML_EXPORT ExecutionContext : public Managed
Type_CallContext = 0x5,
Type_QmlContext = 0x6
};
- struct EvalCode
- {
- Function *function;
- EvalCode *next;
- };
struct Data : Managed::Data {
Data(ExecutionEngine *engine, ContextType t)
@@ -89,7 +84,6 @@ struct Q_QML_EXPORT ExecutionContext : public Managed
, outer(0)
, lookups(0)
, compilationUnit(0)
- , currentEvalCode(0)
, lineNumber(-1)
{
engine->current = reinterpret_cast<ExecutionContext *>(this);
@@ -104,7 +98,6 @@ struct Q_QML_EXPORT ExecutionContext : public Managed
ExecutionContext *outer;
Lookup *lookups;
CompiledData::CompilationUnit *compilationUnit;
- EvalCode *currentEvalCode;
int lineNumber;
@@ -122,7 +115,6 @@ struct Q_QML_EXPORT ExecutionContext : public Managed
d()->outer = 0;
d()->lookups = 0;
d()->compilationUnit = 0;
- d()->currentEvalCode = 0;
d()->lineNumber = -1;
engine->current = this;
}
@@ -238,7 +230,6 @@ inline void ExecutionEngine::pushContext(CallContext *context)
{
context->d()->parent = current;
current = context;
- current->d()->currentEvalCode = 0;
}
inline ExecutionContext *ExecutionEngine::popContext()
diff --git a/src/qml/jsruntime/qv4globalobject.cpp b/src/qml/jsruntime/qv4globalobject.cpp
index 49032e5bcf..9a9de8bb41 100644
--- a/src/qml/jsruntime/qv4globalobject.cpp
+++ b/src/qml/jsruntime/qv4globalobject.cpp
@@ -395,11 +395,6 @@ ReturnedValue EvalFunction::evalCall(CallData *callData, bool directCall)
ContextStateSaver stateSaver(ctx);
- ExecutionContext::EvalCode evalCode;
- evalCode.function = function;
- evalCode.next = ctx->d()->currentEvalCode;
- ctx->d()->currentEvalCode = &evalCode;
-
// set the correct strict mode flag on the context
ctx->d()->strictMode = strictMode();
ctx->d()->compilationUnit = function->compilationUnit;