forked from qt-creator/qt-creator
ProjectExplorer: Remove effectively unused enum
Change-Id: Ie4f23e5658e57a367ab77c2cc40443f32a60a8d0 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1370,7 +1370,7 @@ FilePath CMakeBuildConfiguration::shadowBuildDirectory(const FilePath &projectFi
|
||||
const QString projectName = projectFilePath.parentDir().fileName();
|
||||
const FilePath projectDir = Project::projectDirectory(projectFilePath);
|
||||
FilePath buildPath = BuildConfiguration::buildDirectoryFromTemplate(projectDir,
|
||||
projectFilePath, projectName, k, bcName, buildType, BuildConfiguration::ReplaceSpaces);
|
||||
projectFilePath, projectName, k, bcName, buildType);
|
||||
|
||||
if (CMakeGeneratorKitAspect::isMultiConfigGenerator(k)) {
|
||||
QString path = buildPath.path();
|
||||
|
@@ -85,7 +85,7 @@ FilePath MesonBuildConfiguration::shadowBuildDirectory(const FilePath &projectFi
|
||||
const QString projectName = projectFilePath.parentDir().fileName();
|
||||
return BuildConfiguration::buildDirectoryFromTemplate(
|
||||
Project::projectDirectory(projectFilePath),
|
||||
projectFilePath, projectName, k, bcName, buildType, BuildConfiguration::ReplaceSpaces);
|
||||
projectFilePath, projectName, k, bcName, buildType);
|
||||
}
|
||||
|
||||
ProjectExplorer::BuildSystem *MesonBuildConfiguration::buildSystem() const
|
||||
|
@@ -604,8 +604,7 @@ FilePath BuildConfiguration::buildDirectoryFromTemplate(const FilePath &projectD
|
||||
const QString &projectName,
|
||||
const Kit *kit,
|
||||
const QString &bcName,
|
||||
BuildType buildType,
|
||||
SpaceHandling spaceHandling)
|
||||
BuildType buildType)
|
||||
{
|
||||
MacroExpander exp;
|
||||
|
||||
@@ -644,7 +643,6 @@ FilePath BuildConfiguration::buildDirectoryFromTemplate(const FilePath &projectD
|
||||
qCDebug(bcLog) << "build dir template:" << buildDir;
|
||||
buildDir = exp.expand(buildDir);
|
||||
qCDebug(bcLog) << "expanded build:" << buildDir;
|
||||
if (spaceHandling == ReplaceSpaces)
|
||||
buildDir.replace(" ", "-");
|
||||
|
||||
return projectDir.resolvePath(buildDir);
|
||||
|
@@ -110,14 +110,12 @@ public:
|
||||
|
||||
static QString buildTypeName(BuildType type);
|
||||
|
||||
enum SpaceHandling { KeepSpace, ReplaceSpaces };
|
||||
static Utils::FilePath buildDirectoryFromTemplate(const Utils::FilePath &projectDir,
|
||||
const Utils::FilePath &mainFilePath,
|
||||
const QString &projectName,
|
||||
const Kit *kit,
|
||||
const QString &bcName,
|
||||
BuildType buildType,
|
||||
SpaceHandling spaceHandling = ReplaceSpaces);
|
||||
BuildType buildType);
|
||||
|
||||
bool isActive() const;
|
||||
|
||||
|
Reference in New Issue
Block a user