forked from qt-creator/qt-creator
Debugger: Removed unused methods
This commit is contained in:
@@ -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
|
|||||||
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:
|
|||||||
|
|
||||||
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.
|
||||||
|
Reference in New Issue
Block a user