forked from qt-creator/qt-creator
Qmake: Remove QmakeProject::runConfigurationCreators
Not used anymore. Change-Id: Idba6fd4a8d6f4c7e251a78568b1da0debd93bf5f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -27,9 +27,12 @@
|
||||
#include "qmakeproject.h"
|
||||
|
||||
#include <projectexplorer/buildconfiguration.h>
|
||||
#include <projectexplorer/runconfiguration.h>
|
||||
#include <projectexplorer/target.h>
|
||||
|
||||
#include <resourceeditor/resourcenode.h>
|
||||
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/stringutils.h>
|
||||
|
||||
using namespace ProjectExplorer;
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#include <projectexplorer/projectnodes.h>
|
||||
|
||||
namespace Utils { class FileName; }
|
||||
namespace ProjectExplorer { class RunConfiguration; }
|
||||
|
||||
namespace QmakeProjectManager {
|
||||
class QmakeProFileNode;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#include "qmakeparsernodes.h"
|
||||
|
||||
#include <projectexplorer/project.h>
|
||||
#include <projectexplorer/runconfiguration.h>
|
||||
|
||||
#include <QStringList>
|
||||
#include <QFutureInterface>
|
||||
@@ -72,10 +71,6 @@ public:
|
||||
Parsing parse = ExactParse) const;
|
||||
QList<QmakeProFile *> applicationProFiles(Parsing parse = ExactParse) const;
|
||||
|
||||
QList<ProjectExplorer::RunConfigurationCreationInfo> runConfigurationCreators
|
||||
(const ProjectExplorer::RunConfigurationFactory *factory,
|
||||
const QList<ProjectType> &projectTypes = {});
|
||||
|
||||
static void notifyChanged(const Utils::FileName &name);
|
||||
|
||||
/// \internal
|
||||
|
||||
Reference in New Issue
Block a user