Browse Source

cmCommand: remove unused methods from interface and all implementations

Daniel Pfeifer 8 years ago
parent
commit
a1218f59d9
100 changed files with 6 additions and 518 deletions
  1. 0 8
      Source/CTest/cmCTestEmptyBinaryDirectoryCommand.h
  2. 5 0
      Source/CTest/cmCTestHandlerCommand.h
  3. 1 0
      Source/CTest/cmCTestMemCheckCommand.cxx
  4. 0 7
      Source/CTest/cmCTestMemCheckCommand.h
  5. 0 5
      Source/CTest/cmCTestReadCustomFilesCommand.h
  6. 0 5
      Source/CTest/cmCTestRunScriptCommand.h
  7. 0 5
      Source/CTest/cmCTestSleepCommand.h
  8. 0 5
      Source/CTest/cmCTestStartCommand.h
  9. 0 20
      Source/CTest/cmCTestTestHandler.cxx
  10. 0 5
      Source/cmAddCompileOptionsCommand.h
  11. 0 5
      Source/cmAddCustomCommandCommand.h
  12. 0 5
      Source/cmAddCustomTargetCommand.h
  13. 0 5
      Source/cmAddDefinitionsCommand.h
  14. 0 5
      Source/cmAddDependenciesCommand.h
  15. 0 5
      Source/cmAddExecutableCommand.h
  16. 0 5
      Source/cmAddLibraryCommand.h
  17. 0 5
      Source/cmAddSubDirectoryCommand.h
  18. 0 5
      Source/cmAddTestCommand.h
  19. 0 5
      Source/cmAuxSourceDirectoryCommand.h
  20. 0 5
      Source/cmBreakCommand.h
  21. 0 5
      Source/cmBuildCommand.h
  22. 0 1
      Source/cmBuildNameCommand.h
  23. 0 8
      Source/cmCMakeHostSystemInformationCommand.h
  24. 0 5
      Source/cmCMakeMinimumRequired.h
  25. 0 5
      Source/cmCMakePolicyCommand.h
  26. 0 11
      Source/cmCommand.h
  27. 0 5
      Source/cmConfigureFileCommand.h
  28. 0 5
      Source/cmContinueCommand.h
  29. 0 5
      Source/cmCreateTestSourceList.h
  30. 0 5
      Source/cmDefinePropertyCommand.h
  31. 0 2
      Source/cmDisallowedCommand.h
  32. 0 5
      Source/cmEnableLanguageCommand.h
  33. 0 5
      Source/cmEnableTestingCommand.h
  34. 0 5
      Source/cmExecProgramCommand.h
  35. 0 5
      Source/cmExecuteProcessCommand.h
  36. 0 5
      Source/cmExportCommand.h
  37. 0 4
      Source/cmExportLibraryDependenciesCommand.h
  38. 0 5
      Source/cmFLTKWrapUICommand.h
  39. 0 5
      Source/cmFileCommand.h
  40. 0 3
      Source/cmFindFileCommand.h
  41. 0 5
      Source/cmFindLibraryCommand.h
  42. 0 5
      Source/cmFindPackageCommand.h
  43. 0 5
      Source/cmFindPathCommand.h
  44. 0 5
      Source/cmFindProgramCommand.h
  45. 0 5
      Source/cmForEachCommand.h
  46. 0 10
      Source/cmFunctionCommand.cxx
  47. 0 5
      Source/cmFunctionCommand.h
  48. 0 5
      Source/cmGetCMakePropertyCommand.h
  49. 0 5
      Source/cmGetDirectoryPropertyCommand.h
  50. 0 5
      Source/cmGetFilenameComponentCommand.h
  51. 0 5
      Source/cmGetPropertyCommand.h
  52. 0 8
      Source/cmGetSourceFilePropertyCommand.h
  53. 0 5
      Source/cmGetTargetPropertyCommand.h
  54. 0 5
      Source/cmGetTestPropertyCommand.h
  55. 0 5
      Source/cmIfCommand.h
  56. 0 5
      Source/cmIncludeCommand.h
  57. 0 5
      Source/cmIncludeDirectoryCommand.h
  58. 0 8
      Source/cmIncludeExternalMSProjectCommand.h
  59. 0 8
      Source/cmIncludeRegularExpressionCommand.h
  60. 0 5
      Source/cmInstallCommand.h
  61. 0 5
      Source/cmInstallFilesCommand.h
  62. 0 5
      Source/cmInstallProgramsCommand.h
  63. 0 5
      Source/cmInstallTargetsCommand.h
  64. 0 5
      Source/cmLinkDirectoriesCommand.h
  65. 0 5
      Source/cmLinkLibrariesCommand.h
  66. 0 5
      Source/cmListCommand.h
  67. 0 5
      Source/cmLoadCacheCommand.h
  68. 0 5
      Source/cmLoadCommandCommand.cxx
  69. 0 1
      Source/cmLoadCommandCommand.h
  70. 0 10
      Source/cmMacroCommand.cxx
  71. 0 5
      Source/cmMacroCommand.h
  72. 0 5
      Source/cmMakeDirectoryCommand.h
  73. 0 5
      Source/cmMarkAsAdvancedCommand.h
  74. 0 5
      Source/cmMathCommand.h
  75. 0 5
      Source/cmMessageCommand.h
  76. 0 5
      Source/cmOptionCommand.h
  77. 0 1
      Source/cmOutputRequiredFilesCommand.h
  78. 0 5
      Source/cmParseArgumentsCommand.h
  79. 0 5
      Source/cmProjectCommand.h
  80. 0 5
      Source/cmQTWrapCPPCommand.h
  81. 0 5
      Source/cmQTWrapUICommand.h
  82. 0 5
      Source/cmRemoveCommand.h
  83. 0 5
      Source/cmRemoveDefinitionsCommand.h
  84. 0 5
      Source/cmReturnCommand.h
  85. 0 5
      Source/cmSeparateArgumentsCommand.h
  86. 0 5
      Source/cmSetCommand.h
  87. 0 8
      Source/cmSetDirectoryPropertiesCommand.h
  88. 0 5
      Source/cmSetPropertyCommand.h
  89. 0 8
      Source/cmSetSourceFilesPropertiesCommand.h
  90. 0 5
      Source/cmSetTargetPropertiesCommand.h
  91. 0 5
      Source/cmSetTestsPropertiesCommand.h
  92. 0 5
      Source/cmSiteNameCommand.h
  93. 0 5
      Source/cmSourceGroupCommand.h
  94. 0 1
      Source/cmState.cxx
  95. 0 5
      Source/cmStringCommand.h
  96. 0 5
      Source/cmSubdirCommand.h
  97. 0 1
      Source/cmSubdirDependsCommand.h
  98. 0 8
      Source/cmTargetCompileDefinitionsCommand.h
  99. 0 2
      Source/cmTargetCompileFeaturesCommand.h
  100. 0 5
      Source/cmTargetCompileOptionsCommand.h

+ 0 - 8
Source/CTest/cmCTestEmptyBinaryDirectoryCommand.h

@@ -42,14 +42,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE
-  {
-    return "ctest_empty_binary_directory";
-  }
 };
 
 #endif

+ 5 - 0
Source/CTest/cmCTestHandlerCommand.h

@@ -24,6 +24,11 @@ class cmCTestHandlerCommand : public cmCTestCommand
 public:
   cmCTestHandlerCommand();
 
+  /**
+   * The name of the command as specified in CMakeList.txt.
+   */
+  virtual std::string GetName() const = 0;
+
   /**
    * This is called when the command is first encountered in
    * the CMakeLists.txt file.

+ 1 - 0
Source/CTest/cmCTestMemCheckCommand.cxx

@@ -3,6 +3,7 @@
 #include "cmCTestMemCheckCommand.h"
 
 #include <sstream>
+#include <string>
 #include <vector>
 
 #include "cmCTest.h"

+ 0 - 7
Source/CTest/cmCTestMemCheckCommand.h

@@ -7,8 +7,6 @@
 
 #include "cmCTestTestCommand.h"
 
-#include <string>
-
 class cmCTestGenericHandler;
 class cmCommand;
 
@@ -33,11 +31,6 @@ public:
     return ni;
   }
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "ctest_memcheck"; }
-
 protected:
   cmCTestGenericHandler* InitializeActualHandler() CM_OVERRIDE;
 

+ 0 - 5
Source/CTest/cmCTestReadCustomFilesCommand.h

@@ -40,11 +40,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "ctest_read_custom_files"; }
 };
 
 #endif

+ 0 - 5
Source/CTest/cmCTestRunScriptCommand.h

@@ -41,11 +41,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "ctest_run_script"; }
 };
 
 #endif

+ 0 - 5
Source/CTest/cmCTestSleepCommand.h

@@ -41,11 +41,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "ctest_sleep"; }
 };
 
 #endif

+ 0 - 5
Source/CTest/cmCTestStartCommand.h

@@ -54,11 +54,6 @@ public:
    */
   bool ShouldBeQuiet() { return this->Quiet; }
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "ctest_start"; }
-
 private:
   bool InitialCheckout(std::ostream& ofs, std::string const& sourceDir);
   bool CreateNewTag;

+ 0 - 20
Source/CTest/cmCTestTestHandler.cxx

@@ -56,11 +56,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& /*unused*/) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "subdirs"; }
-
   cmCTestTestHandler* TestHandler;
 };
 
@@ -136,11 +131,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& /*unused*/) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "add_subdirectory"; }
-
   cmCTestTestHandler* TestHandler;
 };
 
@@ -206,11 +196,6 @@ public:
   bool InitialPass(std::vector<std::string> const& /*args*/,
                    cmExecutionStatus& /*unused*/) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "add_test"; }
-
   cmCTestTestHandler* TestHandler;
 };
 
@@ -244,11 +229,6 @@ public:
   bool InitialPass(std::vector<std::string> const& /*args*/,
                    cmExecutionStatus& /*unused*/) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "set_tests_properties"; }
-
   cmCTestTestHandler* TestHandler;
 };
 

+ 0 - 5
Source/cmAddCompileOptionsCommand.h

@@ -26,11 +26,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "add_compile_options"; }
 };
 
 #endif

+ 0 - 5
Source/cmAddCustomCommandCommand.h

@@ -33,11 +33,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "add_custom_command"; }
-
 protected:
   bool CheckOutputs(const std::vector<std::string>& outputs);
 };

+ 0 - 5
Source/cmAddCustomTargetCommand.h

@@ -33,11 +33,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "add_custom_target"; }
 };
 
 #endif

+ 0 - 5
Source/cmAddDefinitionsCommand.h

@@ -32,11 +32,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "add_definitions"; }
 };
 
 #endif

+ 0 - 5
Source/cmAddDependenciesCommand.h

@@ -31,11 +31,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "add_dependencies"; }
 };
 
 #endif

+ 0 - 5
Source/cmAddExecutableCommand.h

@@ -32,11 +32,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "add_executable"; }
 };
 
 #endif

+ 0 - 5
Source/cmAddLibraryCommand.h

@@ -32,11 +32,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "add_library"; }
 };
 
 #endif

+ 0 - 5
Source/cmAddSubDirectoryCommand.h

@@ -33,11 +33,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "add_subdirectory"; }
 };
 
 #endif

+ 0 - 5
Source/cmAddTestCommand.h

@@ -32,11 +32,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "add_test"; }
-
 private:
   bool HandleNameMode(std::vector<std::string> const& args);
 };

+ 0 - 5
Source/cmAuxSourceDirectoryCommand.h

@@ -35,11 +35,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "aux_source_directory"; }
 };
 
 #endif

+ 0 - 5
Source/cmBreakCommand.h

@@ -31,11 +31,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "break"; }
 };
 
 #endif

+ 0 - 5
Source/cmBuildCommand.h

@@ -42,11 +42,6 @@ public:
    */
   virtual bool TwoArgsSignature(std::vector<std::string> const& args);
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "build_command"; }
-
 private:
   bool IgnoreErrors() const;
 };

+ 0 - 1
Source/cmBuildNameCommand.h

@@ -18,7 +18,6 @@ public:
   cmCommand* Clone() CM_OVERRIDE { return new cmBuildNameCommand; }
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-  std::string GetName() const CM_OVERRIDE { return "build_name"; }
 };
 
 #endif

+ 0 - 8
Source/cmCMakeHostSystemInformationCommand.h

@@ -40,14 +40,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-  * The name of the command as specified in CMakeList.txt.
-  */
-  std::string GetName() const CM_OVERRIDE
-  {
-    return "cmake_host_system_information";
-  }
-
 private:
   bool GetValue(cmsys::SystemInformation& info, std::string const& key,
                 std::string& value);

+ 0 - 5
Source/cmCMakeMinimumRequired.h

@@ -32,11 +32,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "cmake_minimum_required"; }
-
 private:
   std::vector<std::string> UnknownArguments;
   bool EnforceUnknownArguments();

+ 0 - 5
Source/cmCMakePolicyCommand.h

@@ -33,11 +33,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-    * The name of the command as specified in CMakeList.txt.
-    */
-  std::string GetName() const CM_OVERRIDE { return "cmake_policy"; }
-
 private:
   bool HandleSetMode(std::vector<std::string> const& args);
   bool HandleGetMode(std::vector<std::string> const& args);

+ 0 - 11
Source/cmCommand.h

@@ -79,17 +79,6 @@ public:
    */
   virtual cmCommand* Clone() = 0;
 
-  /**
-   * This determines if the command is defined in a cmake script.
-   * It is the case for cmMacroHelperCommand and cmFunctionHelperCommand.
-   */
-  virtual bool IsUserDefined() const { return false; }
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  virtual std::string GetName() const = 0;
-
   /**
    * Return the last error string.
    */

+ 0 - 5
Source/cmConfigureFileCommand.h

@@ -25,11 +25,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "configure_file"; }
-
 private:
   int ConfigureFile();
 

+ 0 - 5
Source/cmContinueCommand.h

@@ -31,11 +31,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "continue"; }
 };
 
 #endif

+ 0 - 5
Source/cmCreateTestSourceList.h

@@ -31,11 +31,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "create_test_sourcelist"; }
 };
 
 #endif

+ 0 - 5
Source/cmDefinePropertyCommand.h

@@ -24,11 +24,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "define_property"; }
-
 private:
   std::string PropertyName;
   std::string BriefDocs;

+ 0 - 2
Source/cmDisallowedCommand.h

@@ -42,8 +42,6 @@ public:
     return this->Command->HasFinalPass();
   }
 
-  std::string GetName() const CM_OVERRIDE { return this->Command->GetName(); }
-
 private:
   cmCommand* Command;
   cmPolicies::PolicyID Policy;

+ 0 - 5
Source/cmEnableLanguageCommand.h

@@ -34,11 +34,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "enable_language"; }
 };
 
 #endif

+ 0 - 5
Source/cmEnableTestingCommand.h

@@ -39,11 +39,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const&,
                    cmExecutionStatus&) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "enable_testing"; }
 };
 
 #endif

+ 0 - 5
Source/cmExecProgramCommand.h

@@ -36,11 +36,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "exec_program"; }
-
 private:
   static bool RunCommand(const char* command, std::string& output, int& retVal,
                          const char* directory = CM_NULLPTR,

+ 0 - 5
Source/cmExecuteProcessCommand.h

@@ -32,11 +32,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "execute_process"; }
 };
 
 #endif

+ 0 - 5
Source/cmExportCommand.h

@@ -36,11 +36,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "export"; }
-
 private:
   cmCommandArgumentsHelper Helper;
   cmCommandArgumentGroup ArgumentGroup;

+ 0 - 4
Source/cmExportLibraryDependenciesCommand.h

@@ -21,10 +21,6 @@ public:
   }
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-  std::string GetName() const CM_OVERRIDE
-  {
-    return "export_library_dependencies";
-  }
 
   void FinalPass() CM_OVERRIDE;
   bool HasFinalPass() const CM_OVERRIDE { return true; }

+ 0 - 5
Source/cmFLTKWrapUICommand.h

@@ -43,11 +43,6 @@ public:
   void FinalPass() CM_OVERRIDE;
   bool HasFinalPass() const CM_OVERRIDE { return true; }
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "fltk_wrap_ui"; }
-
 private:
   /**
    * List of produced files.

+ 0 - 5
Source/cmFileCommand.h

@@ -31,11 +31,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "file"; }
-
 protected:
   bool HandleRename(std::vector<std::string> const& args);
   bool HandleRemove(std::vector<std::string> const& args, bool recurse);

+ 0 - 3
Source/cmFindFileCommand.h

@@ -5,8 +5,6 @@
 
 #include "cmConfigure.h"
 
-#include <string>
-
 #include "cmFindPathCommand.h"
 
 class cmCommand;
@@ -27,7 +25,6 @@ public:
    * This is a virtual constructor for the command.
    */
   cmCommand* Clone() CM_OVERRIDE { return new cmFindFileCommand; }
-  std::string GetName() const CM_OVERRIDE { return "find_file"; }
 };
 
 #endif

+ 0 - 5
Source/cmFindLibraryCommand.h

@@ -36,11 +36,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "find_library"; }
-
 protected:
   void AddArchitecturePaths(const char* suffix);
   void AddArchitecturePath(std::string const& dir,

+ 0 - 5
Source/cmFindPackageCommand.h

@@ -60,11 +60,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "find_package"; }
-
 private:
   class PathLabel : public cmFindCommon::PathLabel
   {

+ 0 - 5
Source/cmFindPathCommand.h

@@ -36,11 +36,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "find_path"; }
-
   bool IncludeFileInPath;
 
 private:

+ 0 - 5
Source/cmFindProgramCommand.h

@@ -37,11 +37,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "find_program"; }
-
 private:
   std::string FindProgram();
   std::string FindNormalProgram();

+ 0 - 5
Source/cmForEachCommand.h

@@ -48,11 +48,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "foreach"; }
-
 private:
   bool HandleInMode(std::vector<std::string> const& args);
 };

+ 0 - 10
Source/cmFunctionCommand.cxx

@@ -20,11 +20,6 @@ public:
   ///! clean up any memory allocated by the function
   ~cmFunctionHelperCommand() CM_OVERRIDE {}
 
-  /**
-   * This determines if the command is defined in a cmake script.
-   */
-  bool IsUserDefined() const CM_OVERRIDE { return true; }
-
   /**
    * This is a virtual constructor for the command.
    */
@@ -52,11 +47,6 @@ public:
     return false;
   }
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return this->Args[0]; }
-
   std::vector<std::string> Args;
   std::vector<cmListFileFunction> Functions;
   cmPolicies::PolicyMap Policies;

+ 0 - 5
Source/cmFunctionCommand.h

@@ -44,11 +44,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "function"; }
 };
 
 #endif

+ 0 - 5
Source/cmGetCMakePropertyCommand.h

@@ -23,11 +23,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "get_cmake_property"; }
 };
 
 #endif

+ 0 - 5
Source/cmGetDirectoryPropertyCommand.h

@@ -24,11 +24,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "get_directory_property"; }
-
 private:
   void StoreResult(const std::string& variable, const char* prop);
 };

+ 0 - 5
Source/cmGetFilenameComponentCommand.h

@@ -32,11 +32,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "get_filename_component"; }
 };
 
 #endif

+ 0 - 5
Source/cmGetPropertyCommand.h

@@ -26,11 +26,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "get_property"; }
-
 private:
   enum OutType
   {

+ 0 - 8
Source/cmGetSourceFilePropertyCommand.h

@@ -23,14 +23,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE
-  {
-    return "get_source_file_property";
-  }
 };
 
 #endif

+ 0 - 5
Source/cmGetTargetPropertyCommand.h

@@ -23,11 +23,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "get_target_property"; }
 };
 
 #endif

+ 0 - 5
Source/cmGetTestPropertyCommand.h

@@ -23,11 +23,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "get_test_property"; }
 };
 
 #endif

+ 0 - 5
Source/cmIfCommand.h

@@ -64,11 +64,6 @@ public:
     return false;
   }
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "if"; }
-
   // Filter the given variable definition based on policy CMP0054.
   static const char* GetDefinitionIfUnquoted(
     const cmMakefile* mf, cmExpandedCommandArgument const& argument);

+ 0 - 5
Source/cmIncludeCommand.h

@@ -32,11 +32,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "include"; }
 };
 
 #endif

+ 0 - 5
Source/cmIncludeDirectoryCommand.h

@@ -33,11 +33,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "include_directories"; }
-
 protected:
   // used internally
   void GetIncludes(const std::string& arg, std::vector<std::string>& incs);

+ 0 - 8
Source/cmIncludeExternalMSProjectCommand.h

@@ -36,14 +36,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE
-  {
-    return "include_external_msproject";
-  }
 };
 
 #endif

+ 0 - 8
Source/cmIncludeRegularExpressionCommand.h

@@ -35,14 +35,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE
-  {
-    return "include_regular_expression";
-  }
 };
 
 #endif

+ 0 - 5
Source/cmInstallCommand.h

@@ -33,11 +33,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "install"; }
-
 private:
   bool HandleScriptMode(std::vector<std::string> const& args);
   bool HandleTargetsMode(std::vector<std::string> const& args);

+ 0 - 5
Source/cmInstallFilesCommand.h

@@ -33,11 +33,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "install_files"; }
-
   /**
    * This is called at the end after all the information
    * specified by the command is accumulated. Most commands do

+ 0 - 5
Source/cmInstallProgramsCommand.h

@@ -33,11 +33,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "install_programs"; }
-
   /**
    * This is called at the end after all the information
    * specified by the command is accumulated. Most commands do

+ 0 - 5
Source/cmInstallTargetsCommand.h

@@ -33,11 +33,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "install_targets"; }
 };
 
 #endif

+ 0 - 5
Source/cmLinkDirectoriesCommand.h

@@ -35,11 +35,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "link_directories"; }
-
 private:
   void AddLinkDir(std::string const& dir);
 };

+ 0 - 5
Source/cmLinkLibrariesCommand.h

@@ -33,11 +33,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "link_libraries"; }
 };
 
 #endif

+ 0 - 5
Source/cmListCommand.h

@@ -31,11 +31,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "list"; }
-
 protected:
   bool HandleLengthCommand(std::vector<std::string> const& args);
   bool HandleGetCommand(std::vector<std::string> const& args);

+ 0 - 5
Source/cmLoadCacheCommand.h

@@ -33,11 +33,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "load_cache"; }
-
 protected:
   std::set<std::string> VariablesToRead;
   std::string Prefix;

+ 0 - 5
Source/cmLoadCommandCommand.cxx

@@ -66,11 +66,6 @@ public:
     return this->info.FinalPass != CM_NULLPTR;
   }
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return info.Name; }
-
   static const char* LastName;
   static void TrapsForSignals(int sig)
   {

+ 0 - 1
Source/cmLoadCommandCommand.h

@@ -18,7 +18,6 @@ public:
   cmCommand* Clone() CM_OVERRIDE { return new cmLoadCommandCommand; }
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-  std::string GetName() const CM_OVERRIDE { return "load_command"; }
 };
 
 #endif

+ 0 - 10
Source/cmMacroCommand.cxx

@@ -21,11 +21,6 @@ public:
   ///! clean up any memory allocated by the macro
   ~cmMacroHelperCommand() CM_OVERRIDE {}
 
-  /**
-   * This determines if the command is defined in a cmake script.
-   */
-  bool IsUserDefined() const CM_OVERRIDE { return true; }
-
   /**
    * This is a virtual constructor for the command.
    */
@@ -53,11 +48,6 @@ public:
     return false;
   }
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return this->Args[0]; }
-
   std::vector<std::string> Args;
   std::vector<cmListFileFunction> Functions;
   cmPolicies::PolicyMap Policies;

+ 0 - 5
Source/cmMacroCommand.h

@@ -44,11 +44,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "macro"; }
 };
 
 #endif

+ 0 - 5
Source/cmMakeDirectoryCommand.h

@@ -35,11 +35,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "make_directory"; }
 };
 
 #endif

+ 0 - 5
Source/cmMarkAsAdvancedCommand.h

@@ -31,11 +31,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "mark_as_advanced"; }
 };
 
 #endif

+ 0 - 5
Source/cmMathCommand.h

@@ -28,11 +28,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "math"; }
-
 protected:
   bool HandleExprCommand(std::vector<std::string> const& args);
 };

+ 0 - 5
Source/cmMessageCommand.h

@@ -30,11 +30,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "message"; }
 };
 
 #endif

+ 0 - 5
Source/cmOptionCommand.h

@@ -31,11 +31,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "option"; }
 };
 
 #endif

+ 0 - 1
Source/cmOutputRequiredFilesCommand.h

@@ -21,7 +21,6 @@ public:
   cmCommand* Clone() CM_OVERRIDE { return new cmOutputRequiredFilesCommand; }
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-  std::string GetName() const CM_OVERRIDE { return "output_required_files"; }
 
   void ListDependencies(cmDependInformation const* info, FILE* fout,
                         std::set<cmDependInformation const*>* visited);

+ 0 - 5
Source/cmParseArgumentsCommand.h

@@ -29,11 +29,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "cmake_parse_arguments"; }
 };
 
 #endif

+ 0 - 5
Source/cmProjectCommand.h

@@ -34,11 +34,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "project"; }
 };
 
 #endif

+ 0 - 5
Source/cmQTWrapCPPCommand.h

@@ -32,11 +32,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "qt_wrap_cpp"; }
 };
 
 #endif

+ 0 - 5
Source/cmQTWrapUICommand.h

@@ -31,11 +31,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "qt_wrap_ui"; }
 };
 
 #endif

+ 0 - 5
Source/cmRemoveCommand.h

@@ -31,11 +31,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "remove"; }
 };
 
 #endif

+ 0 - 5
Source/cmRemoveDefinitionsCommand.h

@@ -33,11 +33,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "remove_definitions"; }
 };
 
 #endif

+ 0 - 5
Source/cmReturnCommand.h

@@ -31,11 +31,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "return"; }
 };
 
 #endif

+ 0 - 5
Source/cmSeparateArgumentsCommand.h

@@ -31,11 +31,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "separate_arguments"; }
 };
 
 #endif

+ 0 - 5
Source/cmSetCommand.h

@@ -31,11 +31,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "set"; }
 };
 
 #endif

+ 0 - 8
Source/cmSetDirectoryPropertiesCommand.h

@@ -28,14 +28,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE
-  {
-    return "set_directory_properties";
-  }
-
   /**
    * Static entry point for use by other commands
    */

+ 0 - 5
Source/cmSetPropertyCommand.h

@@ -31,11 +31,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "set_property"; }
-
 private:
   std::set<std::string> Names;
   std::string PropertyName;

+ 0 - 8
Source/cmSetSourceFilesPropertiesCommand.h

@@ -28,14 +28,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE
-  {
-    return "set_source_files_properties";
-  }
-
   static bool RunCommand(cmMakefile* mf,
                          std::vector<std::string>::const_iterator filebeg,
                          std::vector<std::string>::const_iterator fileend,

+ 0 - 5
Source/cmSetTargetPropertiesCommand.h

@@ -25,11 +25,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "set_target_properties"; }
-
   /**
    *  Used by this command and cmSetPropertiesCommand
    */

+ 0 - 5
Source/cmSetTestsPropertiesCommand.h

@@ -25,11 +25,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "set_tests_properties"; }
-
   static bool SetOneTest(const std::string& tname,
                          std::vector<std::string>& propertyPairs,
                          cmMakefile* mf, std::string& errors);

+ 0 - 5
Source/cmSiteNameCommand.h

@@ -31,11 +31,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "site_name"; }
 };
 
 #endif

+ 0 - 5
Source/cmSourceGroupCommand.h

@@ -33,11 +33,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "source_group"; }
-
 private:
   bool processTree(const std::vector<std::string>& args,
                    std::string& errorMsg);

+ 0 - 1
Source/cmState.cxx

@@ -381,7 +381,6 @@ void cmState::SetIsGeneratorMultiConfig(bool b)
 void cmState::AddBuiltinCommand(std::string const& name, cmCommand* command)
 {
   assert(name == cmSystemTools::LowerCase(name));
-  assert(name == cmSystemTools::LowerCase(command->GetName()));
   assert(this->BuiltinCommands.find(name) == this->BuiltinCommands.end());
   this->BuiltinCommands.insert(std::make_pair(name, command));
 }

+ 0 - 5
Source/cmStringCommand.h

@@ -31,11 +31,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "string"; }
-
 protected:
   bool HandleConfigureCommand(std::vector<std::string> const& args);
   bool HandleAsciiCommand(std::vector<std::string> const& args);

+ 0 - 5
Source/cmSubdirCommand.h

@@ -33,11 +33,6 @@ public:
    */
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "subdirs"; }
 };
 
 #endif

+ 0 - 1
Source/cmSubdirDependsCommand.h

@@ -18,7 +18,6 @@ public:
   cmCommand* Clone() CM_OVERRIDE { return new cmSubdirDependsCommand; }
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
-  std::string GetName() const CM_OVERRIDE { return "subdir_depends"; }
 };
 
 #endif

+ 0 - 8
Source/cmTargetCompileDefinitionsCommand.h

@@ -32,14 +32,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE
-  {
-    return "target_compile_definitions";
-  }
-
 private:
   void HandleImportedTarget(const std::string& tgt) CM_OVERRIDE;
   void HandleMissingTarget(const std::string& name) CM_OVERRIDE;

+ 0 - 2
Source/cmTargetCompileFeaturesCommand.h

@@ -21,8 +21,6 @@ class cmTargetCompileFeaturesCommand : public cmTargetPropCommandBase
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  std::string GetName() const CM_OVERRIDE { return "target_compile_features"; }
-
 private:
   void HandleImportedTarget(const std::string& tgt) CM_OVERRIDE;
   void HandleMissingTarget(const std::string& name) CM_OVERRIDE;

+ 0 - 5
Source/cmTargetCompileOptionsCommand.h

@@ -29,11 +29,6 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) CM_OVERRIDE;
 
-  /**
-   * The name of the command as specified in CMakeList.txt.
-   */
-  std::string GetName() const CM_OVERRIDE { return "target_compile_options"; }
-
 private:
   void HandleImportedTarget(const std::string& tgt) CM_OVERRIDE;
   void HandleMissingTarget(const std::string& name) CM_OVERRIDE;

Some files were not shown because too many files changed in this diff