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

@@ -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

View File

@@ -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

View File

@@ -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.