summaryrefslogtreecommitdiffstats
path: root/src/scripttools/debugging/qscriptdebuggercommandexecutor.cpp
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2009-04-16 01:06:09 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2009-04-16 01:06:09 (GMT)
commit5174ef058693fb3c5420bd9ed555ebf0dfc758a2 (patch)
tree2e8272b2394c9beff850e08dd745559d11aad258 /src/scripttools/debugging/qscriptdebuggercommandexecutor.cpp
parent3eb4aacf07c77876c6ce68e9746906424934433b (diff)
downloadQt-5174ef058693fb3c5420bd9ed555ebf0dfc758a2.zip
Qt-5174ef058693fb3c5420bd9ed555ebf0dfc758a2.tar.gz
Qt-5174ef058693fb3c5420bd9ed555ebf0dfc758a2.tar.bz2
Remove obsolete pre-processor directives that check QT_VERSION.
Reviewed-by: Kent Hansen
Diffstat (limited to 'src/scripttools/debugging/qscriptdebuggercommandexecutor.cpp')
-rw-r--r--src/scripttools/debugging/qscriptdebuggercommandexecutor.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/scripttools/debugging/qscriptdebuggercommandexecutor.cpp b/src/scripttools/debugging/qscriptdebuggercommandexecutor.cpp
index e36386d..1be8c5f 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);