From 4dec2a174a83415e9b6d26f4d0e0750111a051ef Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Sun, 15 Sep 2002 09:54:08 -0400 Subject: [PATCH] remove unused variables --- Source/cmAddCustomCommandCommand.cxx | 1 - Source/cmAddDependenciesCommand.cxx | 1 - Source/cmCacheManager.cxx | 5 ----- Source/cmExecProgramCommand.cxx | 1 - Source/cmFLTKWrapUICommand.cxx | 1 - Source/cmListFileCache.cxx | 2 -- Source/cmaketest.cxx | 1 - Source/ctest.cxx | 1 - 8 files changed, 13 deletions(-) diff --git a/Source/cmAddCustomCommandCommand.cxx b/Source/cmAddCustomCommandCommand.cxx index f601ecc05..969c68b47 100644 --- a/Source/cmAddCustomCommandCommand.cxx +++ b/Source/cmAddCustomCommandCommand.cxx @@ -34,7 +34,6 @@ bool cmAddCustomCommandCommand::InitialPass(std::vector const& args std::string source, command, target; std::vector command_args, depends, outputs; - std::string outDir = m_Makefile->GetCurrentOutputDirectory(); enum tdoing { doing_source, diff --git a/Source/cmAddDependenciesCommand.cxx b/Source/cmAddDependenciesCommand.cxx index de444eabc..161005e58 100644 --- a/Source/cmAddDependenciesCommand.cxx +++ b/Source/cmAddDependenciesCommand.cxx @@ -35,7 +35,6 @@ bool cmAddDependenciesCommand::InitialPass(std::vector const& argsI { std::vector::const_iterator s = args.begin(); ++s; - std::string depend_target; for (; s != args.end(); ++s) { tgts[target_name].AddUtility(s->c_str()); diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx index e6aec2cf7..f77c231f0 100644 --- a/Source/cmCacheManager.cxx +++ b/Source/cmCacheManager.cxx @@ -128,11 +128,6 @@ bool cmCacheManager::LoadCache(const char* path, const int bsize = 4096; char buffer[bsize]; char *realbuffer; - // input line is: key:type=value - cmRegularExpression reg("^([^:]*):([^=]*)=(.*[^\t ]|[\t ]*)[\t ]*$"); - // input line is: "key":type=value - cmRegularExpression regQuoted("^\"([^\"]*)\":([^=]*)=(.*[^\t ]|[\t ]*)[\t ]*$"); - std::string entryKey; while(fin) { diff --git a/Source/cmExecProgramCommand.cxx b/Source/cmExecProgramCommand.cxx index a5e6e53ce..378fe27f8 100644 --- a/Source/cmExecProgramCommand.cxx +++ b/Source/cmExecProgramCommand.cxx @@ -32,7 +32,6 @@ bool cmExecProgramCommand::InitialPass(std::vector const& args) bool haveoutput_variable = false; std::string return_variable; bool havereturn_variable = false; - std::string e_command; for(size_t i=0; i < args.size(); ++i) { if(args[i] == "OUTPUT_VARIABLE") diff --git a/Source/cmFLTKWrapUICommand.cxx b/Source/cmFLTKWrapUICommand.cxx index dca57bf6d..c438301b0 100644 --- a/Source/cmFLTKWrapUICommand.cxx +++ b/Source/cmFLTKWrapUICommand.cxx @@ -76,7 +76,6 @@ bool cmFLTKWrapUICommand::InitialPass(std::vector const& args) outputDirectory.c_str(), "cxx",!headerFileOnly); std::string origname = cdir + "/" + *i; std::string hname = header_file.GetFullPath(); - std::string cxxname = source_file.GetFullPath(); m_WrapUserInterface.push_back(origname); // add starting depends source_file.GetDepends().push_back(hname); diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx index fcfd75cc3..83dd3cf66 100644 --- a/Source/cmListFileCache.cxx +++ b/Source/cmListFileCache.cxx @@ -88,8 +88,6 @@ bool cmListFileCache::CacheFile(const char* path) cmSystemTools::Error("cmListFileCache: error can not open file ", path); return false; } - std::string name; - std::vector arguments; cmListFile inFile; inFile.m_ModifiedTime = cmSystemTools::ModifiedTime(path); bool parseError; diff --git a/Source/cmaketest.cxx b/Source/cmaketest.cxx index 803098397..3fe0780b2 100644 --- a/Source/cmaketest.cxx +++ b/Source/cmaketest.cxx @@ -145,7 +145,6 @@ int main (int argc, char **argv) makeCommand = cmSystemTools::ConvertToOutputPath(makeCommand.c_str()); std::string lowerCaseCommand = makeCommand; cmSystemTools::LowerCase(lowerCaseCommand); - std::string dartMakeCommand = DART_MAKECOMMAND; // if msdev is the make program then do the following // MSDEV 6.0 if(lowerCaseCommand.find("msdev") != std::string::npos) diff --git a/Source/ctest.cxx b/Source/ctest.cxx index 70ceb364b..a2387c3e2 100644 --- a/Source/ctest.cxx +++ b/Source/ctest.cxx @@ -64,7 +64,6 @@ std::string ctest::FindExecutable(const char *exe) { return fullPath; } - std::string tried = dir; dir += "/"; dir += m_ConfigType; dir += "/";