Debugger: Removed unused methods

This commit is contained in:
Lasse Holmstedt
2010-08-31 17:33:41 +02:00
parent 972929cf8e
commit db7bf9a806
3 changed files with 0 additions and 42 deletions

View File

@@ -750,29 +750,4 @@ QList<QDockWidget* > DebuggerUISwitcher::i_mw_dockWidgets() const
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