Commit db7bf9a8 authored by Lasse Holmstedt's avatar Lasse Holmstedt
Browse files

Debugger: Removed unused methods

parent 972929cf
...@@ -589,18 +589,4 @@ Internal::DebuggerEngine *DebuggerRunControl::engine() ...@@ -589,18 +589,4 @@ Internal::DebuggerEngine *DebuggerRunControl::engine()
return m_engine; return m_engine;
} }
bool DebuggerRunControl::isQmlProject(RunConfiguration *config)
{
if (!config || !config->target() || !config->target()->project())
return false;
QStringList projectFiles = config->target()->project()->files(ProjectExplorer::Project::ExcludeGeneratedFiles);
foreach(const QString &filename, projectFiles) {
if (filename.endsWith(".qml"))
return true;
}
return false;
}
} // namespace Debugger } // namespace Debugger
...@@ -750,29 +750,4 @@ QList<QDockWidget* > DebuggerUISwitcher::i_mw_dockWidgets() const ...@@ -750,29 +750,4 @@ QList<QDockWidget* > DebuggerUISwitcher::i_mw_dockWidgets() const
return d->m_dockWidgets; return d->m_dockWidgets;
} }
bool DebuggerUISwitcher::isCurrentProjectQmlCppBased()
{
ProjectExplorer::Project *startupProject = ProjectExplorer::ProjectExplorerPlugin::instance()->startupProject();
if (!startupProject)
return false;
if (!startupProject->activeTarget())
return false;
ProjectExplorer::RunConfiguration *rc = startupProject->activeTarget()->activeRunConfiguration();
return DebuggerRunControl::isQmlProject(rc);
}
bool DebuggerUISwitcher::isCurrentProjectCppBased()
{
ProjectExplorer::Project *startupProject = ProjectExplorer::ProjectExplorerPlugin::instance()->startupProject();
if (!startupProject)
return false;
const QString id = startupProject->id();
return id == QLatin1String("GenericProjectManager.GenericProject")
|| id == QLatin1String("CMakeProjectManager.CMakeProject")
|| id == QLatin1String("Qt4ProjectManager.Qt4Project");
}
} // namespace Debugger } // namespace Debugger
...@@ -114,9 +114,6 @@ public: ...@@ -114,9 +114,6 @@ public:
Utils::FancyMainWindow *mainWindow() const; Utils::FancyMainWindow *mainWindow() const;
static bool isCurrentProjectQmlCppBased();
static bool isCurrentProjectCppBased();
signals: signals:
// emit when user changes active languages from the menu. // emit when user changes active languages from the menu.
// Both UI and debugger startup are affected. // Both UI and debugger startup are affected.
......
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