Commit 3282c1af authored by hjk's avatar hjk
Browse files

debugger: remove unused bits from the debugger plugin interface

parent 3006a136
......@@ -2628,6 +2628,7 @@ QString DebuggerPluginPrivate::gdbBinaryForToolChain(int toolChain) const
DebuggerLanguages DebuggerPluginPrivate::activeLanguages() const
{
QTC_ASSERT(m_mainWindow, return AnyLanguage);
return m_mainWindow->activeDebugLanguages();
}
......@@ -2851,8 +2852,9 @@ void DebuggerPluginPrivate::extensionsInitialized()
m_mainWindow->createDockWidget(CppLanguage, localsAndWatchers);
m_mainWindow->createDockWidget(QmlLanguage, m_scriptConsoleWindow);
m_debuggerSettings->readSettings();
m_mainWindow->readSettings();
m_debuggerSettings->readSettings();
GdbOptionsPage::readGdbBinarySettings();
// Register factory of DebuggerRunControl.
......@@ -3328,16 +3330,6 @@ void DebuggerPlugin::displayDebugger(RunControl *runControl)
theDebuggerCore->displayDebugger(rc->engine());
}
void DebuggerPlugin::runControlStarted(DebuggerRunControl *runControl)
{
theDebuggerCore->runControlStarted(runControl);
}
void DebuggerPlugin::runControlFinished(DebuggerRunControl *runControl)
{
theDebuggerCore->runControlFinished(runControl);
}
void DebuggerPlugin::extensionsInitialized()
{
theDebuggerCore->extensionsInitialized();
......@@ -3348,11 +3340,6 @@ bool DebuggerPlugin::isActiveDebugLanguage(int language)
return theDebuggerCore->isActiveDebugLanguage(language);
}
DebuggerMainWindow *DebuggerPlugin::mainWindow()
{
return theDebuggerCore->m_mainWindow;
}
QWidget *DebugMode::widget()
{
if (!m_widget) {
......
......@@ -45,11 +45,10 @@ namespace Debugger {
class DebuggerRunControl;
class DebuggerStartParameters;
class DebuggerMainWindow;
// This is the "external" interface of the debugger plugin that's
// visible from Creator core. The internal interfact to global
// functionality to be used by debugger views and debugger engines
// This is the "external" interface of the debugger plugin that's visible
// from Qt Creator core. The internal interface to global debugger
// functionality that is used by debugger views and debugger engines
// is DebuggerCore, implemented in DebuggerPluginPrivate.
class DEBUGGER_EXPORT DebuggerPlugin : public ExtensionSystem::IPlugin
......@@ -65,7 +64,6 @@ public:
static void startDebugger(ProjectExplorer::RunControl *runControl);
static void displayDebugger(ProjectExplorer::RunControl *runControl);
static bool isActiveDebugLanguage(int language);
static DebuggerMainWindow *mainWindow();
private:
// IPlugin implementation.
......@@ -73,9 +71,6 @@ private:
void remoteCommand(const QStringList &options, const QStringList &arguments);
ShutdownFlag aboutToShutdown();
void extensionsInitialized();
void runControlStarted(DebuggerRunControl *runControl);
void runControlFinished(DebuggerRunControl *runControl);
};
} // namespace Debugger
......
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