Browse Source

cmMakefile: Remove superfluous overload

Explicit is better than implicit.
Stephen Kelly 9 năm trước cách đây
mục cha
commit
c8ec8d6a7e
3 tập tin đã thay đổi với 1 bổ sung7 xóa
  1. 1 1
      Source/cmLinkLibrariesCommand.cxx
  2. 0 5
      Source/cmMakefile.cxx
  3. 0 1
      Source/cmMakefile.h

+ 1 - 1
Source/cmLinkLibrariesCommand.cxx

@@ -30,7 +30,7 @@ bool cmLinkLibrariesCommand::InitialPass(std::vector<std::string> const& args,
       }
       this->Makefile->AddLinkLibrary(*i, OPTIMIZED_LibraryType);
     } else {
-      this->Makefile->AddLinkLibrary(*i);
+      this->Makefile->AddLinkLibrary(*i, GENERAL_LibraryType);
     }
   }
 

+ 0 - 5
Source/cmMakefile.cxx

@@ -1267,11 +1267,6 @@ void cmMakefile::AddLinkDirectoryForTarget(const std::string& target,
   }
 }
 
-void cmMakefile::AddLinkLibrary(const std::string& lib)
-{
-  this->AddLinkLibrary(lib, GENERAL_LibraryType);
-}
-
 void cmMakefile::InitializeFromParent(cmMakefile* parent)
 {
   this->SystemIncludeDirectories = parent->SystemIncludeDirectories;

+ 0 - 1
Source/cmMakefile.h

@@ -199,7 +199,6 @@ public:
   /**
    * Add a link library to the build.
    */
-  void AddLinkLibrary(const std::string&);
   void AddLinkLibrary(const std::string&, cmTargetLinkLibraryType type);
   void AddLinkLibraryForTarget(const std::string& tgt, const std::string&,
                                cmTargetLinkLibraryType type);