From c95d34c25d68e92468c1c5cc920d7006b1deb9c2 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 6 Feb 2014 13:22:36 +0100 Subject: Remove two unused parameters from VME::run() These parameters are not used outside the function itself anymore, so we can safely remove them. Change-Id: I1694481c05a9927fc78a59ffb7fec43a88e85ac8 Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4vme_moth.cpp | 8 +++++--- src/qml/jsruntime/qv4vme_moth_p.h | 3 +-- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src/qml') diff --git a/src/qml/jsruntime/qv4vme_moth.cpp b/src/qml/jsruntime/qv4vme_moth.cpp index 260f7c9958..c64a284b4c 100644 --- a/src/qml/jsruntime/qv4vme_moth.cpp +++ b/src/qml/jsruntime/qv4vme_moth.cpp @@ -158,8 +158,7 @@ Param traceParam(const Param ¶m) if (engine->hasException) \ goto catchException -QV4::ReturnedValue VME::run(QV4::ExecutionContext *context, const uchar *code, - QV4::Value *stack, unsigned stackSize +QV4::ReturnedValue VME::run(QV4::ExecutionContext *context, const uchar *code #ifdef MOTH_THREADED_INTERPRETER , void ***storeJumpTable #endif @@ -181,6 +180,9 @@ QV4::ReturnedValue VME::run(QV4::ExecutionContext *context, const uchar *code, } #endif + QV4::Value *stack = 0; + unsigned stackSize = 0; + const uchar *exceptionHandler = 0; QV4::ExecutionEngine *engine = context->engine; @@ -719,7 +721,7 @@ void **VME::instructionJumpTable() static void **jumpTable = 0; if (!jumpTable) { const uchar *code = 0; - VME().run(0, code, 0, 0, &jumpTable); + VME().run(0, code, &jumpTable); } return jumpTable; } diff --git a/src/qml/jsruntime/qv4vme_moth_p.h b/src/qml/jsruntime/qv4vme_moth_p.h index 6c6b49d49f..8d0822f16f 100644 --- a/src/qml/jsruntime/qv4vme_moth_p.h +++ b/src/qml/jsruntime/qv4vme_moth_p.h @@ -60,8 +60,7 @@ public: #endif private: - QV4::ReturnedValue run(QV4::ExecutionContext *, const uchar *code, - QV4::Value *stack = 0, unsigned stackSize = 0 + QV4::ReturnedValue run(QV4::ExecutionContext *, const uchar *code #ifdef MOTH_THREADED_INTERPRETER , void ***storeJumpTable = 0 #endif -- cgit v1.2.3