summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorPavel Solodovnikov <hellyeahdominate@gmail.com>2017-05-26 19:52:31 +0300
committerPavel Solodovnikov <hellyeahdominate@gmail.com>2017-05-26 19:52:31 +0300
commit1e4e2f993c5914d329cbee355035166e12151081 (patch)
tree9ecee5161a2162d15630e0e4fd8fdeb0fadc696d /Source
parent25486156305dc0693366c0c7e5dc6c7035ab49a9 (diff)
downloadcmake-1e4e2f993c5914d329cbee355035166e12151081.tar.gz
Remove unused variables
Diffstat (limited to 'Source')
-rw-r--r--Source/cmExtraCodeLiteGenerator.cxx3
-rw-r--r--Source/cmOSXBundleGenerator.cxx4
-rw-r--r--Source/cmSystemTools.cxx1
3 files changed, 1 insertions, 7 deletions
diff --git a/Source/cmExtraCodeLiteGenerator.cxx b/Source/cmExtraCodeLiteGenerator.cxx
index ea5379a48c..adab061476 100644
--- a/Source/cmExtraCodeLiteGenerator.cxx
+++ b/Source/cmExtraCodeLiteGenerator.cxx
@@ -600,9 +600,6 @@ void cmExtraCodeLiteGenerator::CreateNewProjectFile(
// which may have an acompanying header, one for all other files
std::string projectType;
- std::vector<std::string> headerExts =
- this->GlobalGenerator->GetCMakeInstance()->GetHeaderExtensions();
-
std::map<std::string, cmSourceFile*> cFiles;
std::set<std::string> otherFiles;
diff --git a/Source/cmOSXBundleGenerator.cxx b/Source/cmOSXBundleGenerator.cxx
index 332fa83088..beddc6e6d4 100644
--- a/Source/cmOSXBundleGenerator.cxx
+++ b/Source/cmOSXBundleGenerator.cxx
@@ -48,8 +48,6 @@ void cmOSXBundleGenerator::CreateAppBundle(const std::string& targetName,
cmSystemTools::MakeDirectory(out.c_str());
this->Makefile->AddCMakeOutputFile(out);
- std::string newoutpath = out;
-
// Configure the Info.plist file. Note that it needs the executable name
// to be set.
std::string plist = outpath;
@@ -60,7 +58,7 @@ void cmOSXBundleGenerator::CreateAppBundle(const std::string& targetName,
this->LocalGenerator->GenerateAppleInfoPList(this->GT, targetName,
plist.c_str());
this->Makefile->AddCMakeOutputFile(plist);
- outpath = newoutpath;
+ outpath = out;
}
void cmOSXBundleGenerator::CreateFramework(const std::string& targetName,
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 9f9cc6f558..dc7034e1b5 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -196,7 +196,6 @@ void cmSystemTools::ExpandRegistryValues(std::string& source,
while (regEntry.find(source)) {
// the arguments are the second match
std::string key = regEntry.match(1);
- std::string val;
std::string reg = "[";
reg += key + "]";
cmSystemTools::ReplaceString(source, reg.c_str(), "/registry");