Qmake: Remove QmakeProject::runConfigurationCreators

Not used anymore.

Change-Id: Idba6fd4a8d6f4c7e251a78568b1da0debd93bf5f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2018-03-19 16:29:46 +01:00
parent 232e8712a5
commit 96b5fa208f
4 changed files with 3 additions and 32 deletions

View File

@@ -780,32 +780,6 @@ QList<QmakeProFile *> QmakeProject::allProFiles(const QList<ProjectType> &projec
return list;
}
QList<RunConfigurationCreationInfo>
QmakeProject::runConfigurationCreators(const RunConfigurationFactory *factory,
const QList<ProjectType> &projectTypes)
{
QList<ProjectType> realTypes = projectTypes;
if (realTypes.isEmpty())
realTypes = {ProjectType::ApplicationTemplate, ProjectType::ScriptTemplate};
const QList<QmakeProFile *> files = allProFiles(realTypes);
const auto isQtcRunnable = [](const QmakeProFile *f) { return f->isQtcRunnable(); };
const bool hasAnyQtcRunnable = Utils::anyOf(files, isQtcRunnable);
return Utils::transform(files, [&](QmakeProFile *f) {
const QString targetName = f->filePath().toString();
return RunConfigurationCreationInfo {
factory,
factory->runConfigurationBaseId(),
targetName,
QFileInfo(targetName).completeBaseName(),
(hasAnyQtcRunnable && !f->isQtcRunnable())
? RunConfigurationCreationInfo::ManualCreationOnly
: RunConfigurationCreationInfo::AlwaysCreate
};
});
}
void QmakeProject::activeTargetWasChanged()
{
if (m_activeTarget) {