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>
This commit is contained in:
Simon Hausmann 2014-11-27 15:45:02 +01:00 committed by Simon Hausmann
parent b34e6717fa
commit b970c57916
2 changed files with 0 additions and 14 deletions

View File

@ -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()

View File

@ -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;