From 01149ad95529e3e90be7936a7d1a881b9b492c8a Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Thu, 6 Oct 2016 11:31:21 +0200 Subject: [PATCH] CMake: Remove unnecessary members from CMakeTargets Change-Id: I6428496f4eab0d42f44525477c716f74714f8824 Reviewed-by: Tim Jenssen --- src/plugins/cmakeprojectmanager/cmakecbpparser.cpp | 7 ------- src/plugins/cmakeprojectmanager/cmakeproject.cpp | 1 - src/plugins/cmakeprojectmanager/cmakeproject.h | 1 - 3 files changed, 9 deletions(-) diff --git a/src/plugins/cmakeprojectmanager/cmakecbpparser.cpp b/src/plugins/cmakeprojectmanager/cmakecbpparser.cpp index 0c17a3fcc5e..9b8a5179bab 100644 --- a/src/plugins/cmakeprojectmanager/cmakecbpparser.cpp +++ b/src/plugins/cmakeprojectmanager/cmakecbpparser.cpp @@ -372,13 +372,6 @@ void CMakeCbpParser::parseBuildTargetBuild() void CMakeCbpParser::parseBuildTargetClean() { - if (attributes().hasAttribute(QLatin1String("command"))) { - m_buildTarget.makeCleanCommand = attributes().value(QLatin1String("command")).toString(); - - CMakeTool *tool = CMakeKitInformation::cmakeTool(m_kit); - if (tool) - m_buildTarget.makeCleanCommand = tool->mapAllPaths(m_kit, m_buildTarget.makeCleanCommand); - } while (!atEnd()) { readNext(); if (isEndElement()) diff --git a/src/plugins/cmakeprojectmanager/cmakeproject.cpp b/src/plugins/cmakeprojectmanager/cmakeproject.cpp index 9e6555d64b1..740563240f6 100644 --- a/src/plugins/cmakeprojectmanager/cmakeproject.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeproject.cpp @@ -642,7 +642,6 @@ void CMakeBuildTarget::clear() { executable.clear(); makeCommand.clear(); - makeCleanCommand.clear(); workingDirectory.clear(); sourceDirectory.clear(); title.clear(); diff --git a/src/plugins/cmakeprojectmanager/cmakeproject.h b/src/plugins/cmakeprojectmanager/cmakeproject.h index 5deb30ebf07..90435ff66bd 100644 --- a/src/plugins/cmakeprojectmanager/cmakeproject.h +++ b/src/plugins/cmakeprojectmanager/cmakeproject.h @@ -64,7 +64,6 @@ public: QString workingDirectory; QString sourceDirectory; QString makeCommand; - QString makeCleanCommand; // code model QStringList includeFiles;