diff options
author | hjk <hjk@qt.io> | 2017-02-25 17:18:35 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2017-02-27 15:24:28 +0000 |
commit | 18fe7b3c7e0af8d7e4cb1af93f5f7a6fe8f1205b (patch) | |
tree | 468216b81a729430859958c431fda5e9b21b91bc /src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp | |
parent | 1da4966b26d1862d4efb56e2ebae5f4eb0039117 (diff) |
CMake: Remove unused function CMakeManager::createXmlFile
Change-Id: I084b5dd4f07d709fdf5a1fd65884df8c741bbb86
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp')
-rw-r--r-- | src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp b/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp index 145bbb5d6a..eb10a113bc 100644 --- a/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp @@ -174,29 +174,6 @@ QString CMakeManager::mimeType() const return QLatin1String(Constants::CMAKEPROJECTMIMETYPE); } -// need to refactor this out -// we probably want the process instead of this function -// cmakeproject then could even run the cmake process in the background, adding the files afterwards -// sounds like a plan -void CMakeManager::createXmlFile(Utils::QtcProcess *proc, const QString &executable, - const QString &arguments, const QString &sourceDirectory, - const QDir &buildDirectory, const Utils::Environment &env) -{ - QString buildDirectoryPath = buildDirectory.absolutePath(); - buildDirectory.mkpath(buildDirectoryPath); - proc->setWorkingDirectory(buildDirectoryPath); - proc->setEnvironment(env); - - const QString srcdir = buildDirectory.exists(QLatin1String("CMakeCache.txt")) ? - QString(QLatin1Char('.')) : sourceDirectory; - QString args; - Utils::QtcProcess::addArg(&args, srcdir); - Utils::QtcProcess::addArgs(&args, arguments); - - proc->setCommand(executable, args); - proc->start(); -} - QString CMakeManager::findCbpFile(const QDir &directory) { // Find the cbp file |