aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2016-01-22 15:31:11 +0100
committerUlf Hermann <ulf.hermann@theqtcompany.com>2016-01-22 14:43:07 +0000
commit2fb5c2342b96115ba87e244b3683501b641c25f3 (patch)
treead3ac797bf90dacd0867416debe4cf1e87aa0a67 /src/plugins
parent60d27c228e6e17ed782ca0a4202768ffe2e46740 (diff)
Remove some dead code.
Change-Id: I511252cee0b6420670af839796b2e35915c35e50 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.cpp7
-rw-r--r--src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.h1
2 files changed, 0 insertions, 8 deletions
diff --git a/src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.cpp b/src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.cpp
index f85c7f704d..96f60b24bb 100644
--- a/src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.cpp
+++ b/src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.cpp
@@ -55,9 +55,6 @@
QT_BEGIN_NAMESPACE
-const QV4DataCollector::Ref QV4DataCollector::s_invalidRef =
- std::numeric_limits<QV4DataCollector::Ref>::max();
-
QV4::CallContext *QV4DataCollector::findContext(int frame)
{
QV4::ExecutionContext *ctx = engine()->currentContext;
@@ -108,17 +105,13 @@ int QV4DataCollector::encodeScopeType(QV4::Heap::ExecutionContext::ContextType s
switch (scopeType) {
case QV4::Heap::ExecutionContext::Type_GlobalContext:
return 0;
- break;
case QV4::Heap::ExecutionContext::Type_CatchContext:
return 4;
- break;
case QV4::Heap::ExecutionContext::Type_WithContext:
return 2;
- break;
case QV4::Heap::ExecutionContext::Type_SimpleCallContext:
case QV4::Heap::ExecutionContext::Type_CallContext:
return 1;
- break;
case QV4::Heap::ExecutionContext::Type_QmlContext:
default:
return -1;
diff --git a/src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.h b/src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.h
index 6e6bf8ff68..fd6356f22e 100644
--- a/src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.h
+++ b/src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.h
@@ -57,7 +57,6 @@ class QV4DataCollector
public:
typedef uint Ref;
typedef QVector<uint> Refs;
- static const Ref s_invalidRef;
static QV4::Heap::CallContext *findScope(QV4::ExecutionContext *ctxt, int scope);
static int encodeScopeType(QV4::Heap::ExecutionContext::ContextType scopeType);