Commit 26bc7f90 authored by hjk's avatar hjk

debugger: remove displayDebugger() from the plugin interface

parent 0c8c6521
......@@ -3317,13 +3317,6 @@ void DebuggerPlugin::startDebugger(RunControl *runControl)
theDebuggerCore->startDebugger(runControl);
}
void DebuggerPlugin::displayDebugger(RunControl *runControl)
{
DebuggerRunControl *rc = qobject_cast<DebuggerRunControl *>(runControl);
QTC_ASSERT(rc, return);
theDebuggerCore->displayDebugger(rc->engine());
}
void DebuggerPlugin::extensionsInitialized()
{
theDebuggerCore->extensionsInitialized();
......
......@@ -64,7 +64,6 @@ public:
static DebuggerRunControl *createDebugger(const DebuggerStartParameters &sp,
ProjectExplorer::RunConfiguration *rc = 0);
static void startDebugger(ProjectExplorer::RunControl *runControl);
static void displayDebugger(ProjectExplorer::RunControl *runControl);
// Used by QmlJSInspector.
static bool isActiveDebugLanguage(int language);
......
......@@ -30,9 +30,9 @@
#include "snapshothandler.h"
#include "debuggerconstants.h"
#include "debuggercore.h"
#include "debuggerengine.h"
#include "debuggerrunner.h"
#include "debuggerplugin.h"
#include <utils/qtcassert.h>
......@@ -213,7 +213,7 @@ void SnapshotHandler::activateSnapshot(int index)
{
m_currentIndex = index;
//qDebug() << "ACTIVATING INDEX: " << m_currentIndex << " OF " << size();
DebuggerPlugin::displayDebugger(m_snapshots.at(index));
debuggerCore()->displayDebugger(engineAt(index), true);
reset();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment