Преглед изворни кода

COMP: Removed unused paramter from cmLocalGenerator::OutputLinkLibraries.

Brad King пре 20 година
родитељ
комит
327489ae59
3 измењених фајлова са 5 додато и 6 уклоњено
  1. 2 3
      Source/cmLocalGenerator.cxx
  2. 1 1
      Source/cmLocalGenerator.h
  3. 2 2
      Source/cmLocalUnixMakefileGenerator3.cxx

+ 2 - 3
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

+ 1 - 1
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.  */

+ 2 - 2
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.