Pārlūkot izejas kodu

cmake: Remove unused cmCommand methods.

Stephen Kelly 10 gadi atpakaļ
vecāks
revīzija
24b7f31d3a
2 mainītis faili ar 0 papildinājumiem un 42 dzēšanām
  1. 0 26
      Source/cmake.cxx
  2. 0 16
      Source/cmake.h

+ 0 - 26
Source/cmake.cxx

@@ -199,32 +199,6 @@ void cmake::CleanupCommandsAndMacros()
   this->State->RemoveUserDefinedCommands();
 }
 
-bool cmake::CommandExists(const std::string& name) const
-{
-  return this->State->GetCommand(name) ? true : false;
-}
-
-cmCommand *cmake::GetCommand(const std::string& name) const
-{
-  return this->State->GetCommand(name);
-}
-
-void cmake::RenameCommand(const std::string& oldName,
-                          const std::string& newName)
-{
-  this->State->RenameCommand(oldName, newName);
-}
-
-void cmake::AddCommand(cmCommand* command)
-{
-  this->State->AddCommand(command);
-}
-
-void cmake::RemoveUnscriptableCommands()
-{
-  this->State->RemoveUnscriptableCommands();
-}
-
 // Parse the args
 bool cmake::SetCacheArgs(const std::vector<std::string>& args)
 {

+ 0 - 16
Source/cmake.h

@@ -24,7 +24,6 @@ class cmGlobalGeneratorFactory;
 class cmGlobalGenerator;
 class cmLocalGenerator;
 class cmMakefile;
-class cmCommand;
 class cmVariableWatch;
 class cmFileTimeComparison;
 class cmExternalMakefileProjectGenerator;
@@ -216,21 +215,6 @@ class cmake
    */
   int GetSystemInformation(std::vector<std::string>&);
 
-  /**
-   * Add a command to this cmake instance
-   */
-  void AddCommand(cmCommand* );
-  void RenameCommand(const std::string& oldName, const std::string& newName);
-  void RemoveUnscriptableCommands();
-
-  /**
-   * Get a command by its name
-   */
-  cmCommand *GetCommand(const std::string& name) const;
-
-  /** Check if a command exists. */
-  bool CommandExists(const std::string& name) const;
-
   ///! Parse command line arguments
   void SetArgs(const std::vector<std::string>&,
                bool directoriesSetBefore = false);