From 5174ef058693fb3c5420bd9ed555ebf0dfc758a2 Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Thu, 16 Apr 2009 11:06:09 +1000 Subject: Remove obsolete pre-processor directives that check QT_VERSION. Reviewed-by: Kent Hansen --- src/scripttools/debugging/qscriptdebuggercommandexecutor.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/scripttools/debugging/qscriptdebuggercommandexecutor.cpp') diff --git a/src/scripttools/debugging/qscriptdebuggercommandexecutor.cpp b/src/scripttools/debugging/qscriptdebuggercommandexecutor.cpp index e36386d5a0..1be8c5ff90 100644 --- a/src/scripttools/debugging/qscriptdebuggercommandexecutor.cpp +++ b/src/scripttools/debugging/qscriptdebuggercommandexecutor.cpp @@ -287,13 +287,9 @@ QScriptDebuggerResponse QScriptDebuggerCommandExecutor::execute( QScriptContext *ctx = backend->context(command.contextIndex()); if (ctx) { QScriptDebuggerValueList dest; -#if QT_VERSION >= 0x040500 QScriptValueList src = ctx->scopeChain(); for (int i = 0; i < src.size(); ++i) dest.append(src.at(i)); -#else - dest.append(ctx->activationObject()); -#endif response.setResult(dest); } else { response.setError(QScriptDebuggerResponse::InvalidContextIndex); -- cgit v1.2.1