From 2fb5c2342b96115ba87e244b3683501b641c25f3 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 22 Jan 2016 15:31:11 +0100 Subject: Remove some dead code. Change-Id: I511252cee0b6420670af839796b2e35915c35e50 Reviewed-by: Simon Hausmann --- src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/plugins/qmltooling/qmldbg_debugger/qv4datacollector.cpp') 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::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; -- cgit v1.2.3