From 327489ae590087064cbff1f924b8a44c8e835557 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 13 Jan 2006 18:33:51 -0500 Subject: [PATCH] COMP: Removed unused paramter from cmLocalGenerator::OutputLinkLibraries. --- Source/cmLocalGenerator.cxx | 5 ++--- Source/cmLocalGenerator.h | 2 +- Source/cmLocalUnixMakefileGenerator3.cxx | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 28e32c8a9..ed6e3725c 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1223,7 +1223,7 @@ void cmLocalGenerator::GetTargetFlags(std::string& linkLibs, linkFlags += " "; } cmOStringStream linklibsStr; - this->OutputLinkLibraries(linklibsStr, target.GetName(), target); + this->OutputLinkLibraries(linklibsStr, target); linkLibs = linklibsStr.str(); } break; @@ -1256,7 +1256,7 @@ void cmLocalGenerator::GetTargetFlags(std::string& linkLibs, flags += m_Makefile->GetSafeDefinition(sharedFlagsVar.c_str()); flags += " "; cmOStringStream linklibs; - this->OutputLinkLibraries(linklibs, 0, target); + this->OutputLinkLibraries(linklibs, target); linkLibs = linklibs.str(); if(cmSystemTools::IsOn(m_Makefile->GetDefinition("BUILD_SHARED_LIBS"))) { @@ -1296,7 +1296,6 @@ void cmLocalGenerator::GetTargetFlags(std::string& linkLibs, * to the name of the library. This will not link a library against itself. */ void cmLocalGenerator::OutputLinkLibraries(std::ostream& fout, - const char* targetLibrary, cmTarget &tgt) { // Try to emit each search path once diff --git a/Source/cmLocalGenerator.h b/Source/cmLocalGenerator.h index 72fe1694d..a30217a00 100644 --- a/Source/cmLocalGenerator.h +++ b/Source/cmLocalGenerator.h @@ -174,7 +174,7 @@ protected: cmTarget&target); ///! put all the libraries for a target on into the given stream - virtual void OutputLinkLibraries(std::ostream&, const char* name,cmTarget &); + virtual void OutputLinkLibraries(std::ostream&, cmTarget&); /** Compute the string to use to refer to a target in an install file. */ diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index e4d6b699f..e484a3c56 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -1523,7 +1523,7 @@ cmLocalUnixMakefileGenerator3 // Collect up flags to link in needed libraries. cmOStringStream linklibs; - this->OutputLinkLibraries(linklibs, 0, target); + this->OutputLinkLibraries(linklibs, target); // Construct object file lists that may be needed to expand the // rule. @@ -1868,7 +1868,7 @@ cmLocalUnixMakefileGenerator3 // Collect up flags to link in needed libraries. cmOStringStream linklibs; - this->OutputLinkLibraries(linklibs, target.GetName(), target); + this->OutputLinkLibraries(linklibs, target); // Construct object file lists that may be needed to expand the // rule.