From 44c0b2b75a1c67a8bede285368f617f2c8e1dd77 Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Mon, 17 Apr 2017 23:00:07 +0200 Subject: cmCommand: remove IsScriptable --- Source/cmBreakCommand.h | 5 ----- Source/cmBuildNameCommand.h | 1 - Source/cmCMakeHostSystemInformationCommand.h | 5 ----- Source/cmCMakeMinimumRequired.h | 5 ----- Source/cmCMakePolicyCommand.h | 5 ----- Source/cmCommand.h | 5 ----- Source/cmConfigureFileCommand.h | 5 ----- Source/cmContinueCommand.h | 5 ----- Source/cmDisallowedCommand.h | 5 ----- Source/cmExecProgramCommand.h | 5 ----- Source/cmExecuteProcessCommand.h | 5 ----- Source/cmFileCommand.h | 5 ----- Source/cmFindLibraryCommand.h | 5 ----- Source/cmFindPackageCommand.h | 5 ----- Source/cmFindPathCommand.h | 5 ----- Source/cmFindProgramCommand.h | 5 ----- Source/cmForEachCommand.h | 5 ----- Source/cmFunctionCommand.cxx | 5 ----- Source/cmFunctionCommand.h | 5 ----- Source/cmGetCMakePropertyCommand.h | 5 ----- Source/cmGetDirectoryPropertyCommand.h | 5 ----- Source/cmGetFilenameComponentCommand.h | 5 ----- Source/cmGetPropertyCommand.h | 5 ----- Source/cmIfCommand.h | 5 ----- Source/cmIncludeCommand.h | 5 ----- Source/cmListCommand.h | 5 ----- Source/cmMacroCommand.cxx | 5 ----- Source/cmMacroCommand.h | 5 ----- Source/cmMakeDirectoryCommand.h | 5 ----- Source/cmMarkAsAdvancedCommand.h | 8 -------- Source/cmMathCommand.h | 5 ----- Source/cmMessageCommand.h | 5 ----- Source/cmOptionCommand.h | 5 ----- Source/cmParseArgumentsCommand.h | 5 ----- Source/cmRemoveCommand.h | 5 ----- Source/cmReturnCommand.h | 5 ----- Source/cmSeparateArgumentsCommand.h | 5 ----- Source/cmSetCommand.h | 5 ----- Source/cmSetDirectoryPropertiesCommand.h | 5 ----- Source/cmSetPropertyCommand.h | 5 ----- Source/cmSiteNameCommand.h | 5 ----- Source/cmStringCommand.h | 5 ----- Source/cmUnexpectedCommand.h | 2 -- Source/cmUnsetCommand.h | 5 ----- Source/cmUseMangledMesaCommand.h | 1 - Source/cmVariableWatchCommand.h | 5 ----- Source/cmWhileCommand.h | 5 ----- Source/cmWriteFileCommand.h | 5 ----- 48 files changed, 232 deletions(-) diff --git a/Source/cmBreakCommand.h b/Source/cmBreakCommand.h index 8ce5ca2..0038883 100644 --- a/Source/cmBreakCommand.h +++ b/Source/cmBreakCommand.h @@ -33,11 +33,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "break"; } diff --git a/Source/cmBuildNameCommand.h b/Source/cmBuildNameCommand.h index 00f645a..9008c27 100644 --- a/Source/cmBuildNameCommand.h +++ b/Source/cmBuildNameCommand.h @@ -19,7 +19,6 @@ public: bool InitialPass(std::vector const& args, cmExecutionStatus& status) CM_OVERRIDE; std::string GetName() const CM_OVERRIDE { return "build_name"; } - bool IsScriptable() const CM_OVERRIDE { return true; } }; #endif diff --git a/Source/cmCMakeHostSystemInformationCommand.h b/Source/cmCMakeHostSystemInformationCommand.h index fe148a3..4263e75 100644 --- a/Source/cmCMakeHostSystemInformationCommand.h +++ b/Source/cmCMakeHostSystemInformationCommand.h @@ -41,11 +41,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE diff --git a/Source/cmCMakeMinimumRequired.h b/Source/cmCMakeMinimumRequired.h index 8db0860..d264675 100644 --- a/Source/cmCMakeMinimumRequired.h +++ b/Source/cmCMakeMinimumRequired.h @@ -33,11 +33,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "cmake_minimum_required"; } diff --git a/Source/cmCMakePolicyCommand.h b/Source/cmCMakePolicyCommand.h index 789e294..cc02169 100644 --- a/Source/cmCMakePolicyCommand.h +++ b/Source/cmCMakePolicyCommand.h @@ -34,11 +34,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "cmake_policy"; } diff --git a/Source/cmCommand.h b/Source/cmCommand.h index 62eced0..2e2ba43 100644 --- a/Source/cmCommand.h +++ b/Source/cmCommand.h @@ -80,11 +80,6 @@ public: virtual cmCommand* Clone() = 0; /** - * This determines if the command is invoked when in script mode. - */ - virtual bool IsScriptable() const { return false; } - - /** * This determines if the command is defined in a cmake script. * It is the case for cmMacroHelperCommand and cmFunctionHelperCommand. */ diff --git a/Source/cmConfigureFileCommand.h b/Source/cmConfigureFileCommand.h index 882219d..402423d 100644 --- a/Source/cmConfigureFileCommand.h +++ b/Source/cmConfigureFileCommand.h @@ -30,11 +30,6 @@ public: */ std::string GetName() const CM_OVERRIDE { return "configure_file"; } - /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - private: int ConfigureFile(); diff --git a/Source/cmContinueCommand.h b/Source/cmContinueCommand.h index 4428d79..4b416a4 100644 --- a/Source/cmContinueCommand.h +++ b/Source/cmContinueCommand.h @@ -33,11 +33,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "continue"; } diff --git a/Source/cmDisallowedCommand.h b/Source/cmDisallowedCommand.h index 7c141dd..38d1d93 100644 --- a/Source/cmDisallowedCommand.h +++ b/Source/cmDisallowedCommand.h @@ -42,11 +42,6 @@ public: return this->Command->HasFinalPass(); } - bool IsScriptable() const CM_OVERRIDE - { - return this->Command->IsScriptable(); - } - std::string GetName() const CM_OVERRIDE { return this->Command->GetName(); } private: diff --git a/Source/cmExecProgramCommand.h b/Source/cmExecProgramCommand.h index 53d35cf..2a59612 100644 --- a/Source/cmExecProgramCommand.h +++ b/Source/cmExecProgramCommand.h @@ -41,11 +41,6 @@ public: */ std::string GetName() const CM_OVERRIDE { return "exec_program"; } - /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - private: static bool RunCommand(const char* command, std::string& output, int& retVal, const char* directory = CM_NULLPTR, diff --git a/Source/cmExecuteProcessCommand.h b/Source/cmExecuteProcessCommand.h index 65e16d4..e57e22d 100644 --- a/Source/cmExecuteProcessCommand.h +++ b/Source/cmExecuteProcessCommand.h @@ -37,11 +37,6 @@ public: * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "execute_process"; } - - /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } }; #endif diff --git a/Source/cmFileCommand.h b/Source/cmFileCommand.h index 121fec0..ff0b35e 100644 --- a/Source/cmFileCommand.h +++ b/Source/cmFileCommand.h @@ -32,11 +32,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "file"; } diff --git a/Source/cmFindLibraryCommand.h b/Source/cmFindLibraryCommand.h index 4a60505..41af976 100644 --- a/Source/cmFindLibraryCommand.h +++ b/Source/cmFindLibraryCommand.h @@ -37,11 +37,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "find_library"; } diff --git a/Source/cmFindPackageCommand.h b/Source/cmFindPackageCommand.h index c42ecce..e4ecfad 100644 --- a/Source/cmFindPackageCommand.h +++ b/Source/cmFindPackageCommand.h @@ -61,11 +61,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "find_package"; } diff --git a/Source/cmFindPathCommand.h b/Source/cmFindPathCommand.h index 205bb17..92849c3 100644 --- a/Source/cmFindPathCommand.h +++ b/Source/cmFindPathCommand.h @@ -37,11 +37,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "find_path"; } diff --git a/Source/cmFindProgramCommand.h b/Source/cmFindProgramCommand.h index 73894ba..af56aef 100644 --- a/Source/cmFindProgramCommand.h +++ b/Source/cmFindProgramCommand.h @@ -38,11 +38,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "find_program"; } diff --git a/Source/cmForEachCommand.h b/Source/cmForEachCommand.h index c71b905..30f0342 100644 --- a/Source/cmForEachCommand.h +++ b/Source/cmForEachCommand.h @@ -49,11 +49,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "foreach"; } diff --git a/Source/cmFunctionCommand.cxx b/Source/cmFunctionCommand.cxx index 31adcb7..4285d26 100644 --- a/Source/cmFunctionCommand.cxx +++ b/Source/cmFunctionCommand.cxx @@ -40,11 +40,6 @@ public: } /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * This is called when the command is first encountered in * the CMakeLists.txt file. */ diff --git a/Source/cmFunctionCommand.h b/Source/cmFunctionCommand.h index d6cc18e..fa13aa4 100644 --- a/Source/cmFunctionCommand.h +++ b/Source/cmFunctionCommand.h @@ -46,11 +46,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "function"; } diff --git a/Source/cmGetCMakePropertyCommand.h b/Source/cmGetCMakePropertyCommand.h index c454e34..b0ddb22 100644 --- a/Source/cmGetCMakePropertyCommand.h +++ b/Source/cmGetCMakePropertyCommand.h @@ -25,11 +25,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "get_cmake_property"; } diff --git a/Source/cmGetDirectoryPropertyCommand.h b/Source/cmGetDirectoryPropertyCommand.h index 0adf818..f91a466 100644 --- a/Source/cmGetDirectoryPropertyCommand.h +++ b/Source/cmGetDirectoryPropertyCommand.h @@ -25,11 +25,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "get_directory_property"; } diff --git a/Source/cmGetFilenameComponentCommand.h b/Source/cmGetFilenameComponentCommand.h index efc9d7b..cf64564 100644 --- a/Source/cmGetFilenameComponentCommand.h +++ b/Source/cmGetFilenameComponentCommand.h @@ -34,11 +34,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "get_filename_component"; } diff --git a/Source/cmGetPropertyCommand.h b/Source/cmGetPropertyCommand.h index a57c675..7bbcec0 100644 --- a/Source/cmGetPropertyCommand.h +++ b/Source/cmGetPropertyCommand.h @@ -27,11 +27,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "get_property"; } diff --git a/Source/cmIfCommand.h b/Source/cmIfCommand.h index 59d32e6..c6c44cb 100644 --- a/Source/cmIfCommand.h +++ b/Source/cmIfCommand.h @@ -69,11 +69,6 @@ public: */ std::string GetName() const CM_OVERRIDE { return "if"; } - /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - // Filter the given variable definition based on policy CMP0054. static const char* GetDefinitionIfUnquoted( const cmMakefile* mf, cmExpandedCommandArgument const& argument); diff --git a/Source/cmIncludeCommand.h b/Source/cmIncludeCommand.h index 06200cd..5a37800 100644 --- a/Source/cmIncludeCommand.h +++ b/Source/cmIncludeCommand.h @@ -34,11 +34,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "include"; } diff --git a/Source/cmListCommand.h b/Source/cmListCommand.h index 8d4aeb1..7272ea1 100644 --- a/Source/cmListCommand.h +++ b/Source/cmListCommand.h @@ -32,11 +32,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "list"; } diff --git a/Source/cmMacroCommand.cxx b/Source/cmMacroCommand.cxx index 583f801..22977f9 100644 --- a/Source/cmMacroCommand.cxx +++ b/Source/cmMacroCommand.cxx @@ -41,11 +41,6 @@ public: } /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * This is called when the command is first encountered in * the CMakeLists.txt file. */ diff --git a/Source/cmMacroCommand.h b/Source/cmMacroCommand.h index f0020ff..fd9c92b 100644 --- a/Source/cmMacroCommand.h +++ b/Source/cmMacroCommand.h @@ -46,11 +46,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "macro"; } diff --git a/Source/cmMakeDirectoryCommand.h b/Source/cmMakeDirectoryCommand.h index 54f4ab3..e2f0932 100644 --- a/Source/cmMakeDirectoryCommand.h +++ b/Source/cmMakeDirectoryCommand.h @@ -40,11 +40,6 @@ public: * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "make_directory"; } - - /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } }; #endif diff --git a/Source/cmMarkAsAdvancedCommand.h b/Source/cmMarkAsAdvancedCommand.h index 8c2f85b..4f80746 100644 --- a/Source/cmMarkAsAdvancedCommand.h +++ b/Source/cmMarkAsAdvancedCommand.h @@ -36,14 +36,6 @@ public: * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "mark_as_advanced"; } - - /** - * This determines if the command is invoked when in script mode. - * mark_as_advanced() will have no effect in script mode, but this will - * make many of the modules usable in cmake/ctest scripts, (among them - * FindUnixMake.cmake used by the CTEST_BUILD command. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } }; #endif diff --git a/Source/cmMathCommand.h b/Source/cmMathCommand.h index 496d836..ef0eb4a 100644 --- a/Source/cmMathCommand.h +++ b/Source/cmMathCommand.h @@ -29,11 +29,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "math"; } diff --git a/Source/cmMessageCommand.h b/Source/cmMessageCommand.h index ca83ed6..fd2dbe7 100644 --- a/Source/cmMessageCommand.h +++ b/Source/cmMessageCommand.h @@ -35,11 +35,6 @@ public: * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "message"; } - - /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } }; #endif diff --git a/Source/cmOptionCommand.h b/Source/cmOptionCommand.h index 86fa41f..0227357 100644 --- a/Source/cmOptionCommand.h +++ b/Source/cmOptionCommand.h @@ -36,11 +36,6 @@ public: * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "option"; } - - /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } }; #endif diff --git a/Source/cmParseArgumentsCommand.h b/Source/cmParseArgumentsCommand.h index 4d9416d..f3de5b6 100644 --- a/Source/cmParseArgumentsCommand.h +++ b/Source/cmParseArgumentsCommand.h @@ -31,11 +31,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "cmake_parse_arguments"; } diff --git a/Source/cmRemoveCommand.h b/Source/cmRemoveCommand.h index 38223a5..84e591d 100644 --- a/Source/cmRemoveCommand.h +++ b/Source/cmRemoveCommand.h @@ -33,11 +33,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "remove"; } diff --git a/Source/cmReturnCommand.h b/Source/cmReturnCommand.h index ceed6b5..a4a6283 100644 --- a/Source/cmReturnCommand.h +++ b/Source/cmReturnCommand.h @@ -33,11 +33,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "return"; } diff --git a/Source/cmSeparateArgumentsCommand.h b/Source/cmSeparateArgumentsCommand.h index 7edde48..e4df5da 100644 --- a/Source/cmSeparateArgumentsCommand.h +++ b/Source/cmSeparateArgumentsCommand.h @@ -33,11 +33,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "separate_arguments"; } diff --git a/Source/cmSetCommand.h b/Source/cmSetCommand.h index 1c67bf9..e3a3175 100644 --- a/Source/cmSetCommand.h +++ b/Source/cmSetCommand.h @@ -33,11 +33,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "set"; } diff --git a/Source/cmSetDirectoryPropertiesCommand.h b/Source/cmSetDirectoryPropertiesCommand.h index e04de6e..4657b66 100644 --- a/Source/cmSetDirectoryPropertiesCommand.h +++ b/Source/cmSetDirectoryPropertiesCommand.h @@ -29,11 +29,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE diff --git a/Source/cmSetPropertyCommand.h b/Source/cmSetPropertyCommand.h index 3657f63..7f5c977 100644 --- a/Source/cmSetPropertyCommand.h +++ b/Source/cmSetPropertyCommand.h @@ -36,11 +36,6 @@ public: */ std::string GetName() const CM_OVERRIDE { return "set_property"; } - /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - private: std::set Names; std::string PropertyName; diff --git a/Source/cmSiteNameCommand.h b/Source/cmSiteNameCommand.h index c7425f6..e133c6c 100644 --- a/Source/cmSiteNameCommand.h +++ b/Source/cmSiteNameCommand.h @@ -33,11 +33,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "site_name"; } diff --git a/Source/cmStringCommand.h b/Source/cmStringCommand.h index 89ecb12..dc3ce5a 100644 --- a/Source/cmStringCommand.h +++ b/Source/cmStringCommand.h @@ -32,11 +32,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "string"; } diff --git a/Source/cmUnexpectedCommand.h b/Source/cmUnexpectedCommand.h index aee5d4d..1605997 100644 --- a/Source/cmUnexpectedCommand.h +++ b/Source/cmUnexpectedCommand.h @@ -29,8 +29,6 @@ public: bool InitialPass(std::vector const& args, cmExecutionStatus& status) CM_OVERRIDE; - bool IsScriptable() const CM_OVERRIDE { return true; } - std::string GetName() const CM_OVERRIDE { return this->Name; } private: diff --git a/Source/cmUnsetCommand.h b/Source/cmUnsetCommand.h index 7e0f5b5..d60bd3e 100644 --- a/Source/cmUnsetCommand.h +++ b/Source/cmUnsetCommand.h @@ -33,11 +33,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "unset"; } diff --git a/Source/cmUseMangledMesaCommand.h b/Source/cmUseMangledMesaCommand.h index e8bd8c6..104614a 100644 --- a/Source/cmUseMangledMesaCommand.h +++ b/Source/cmUseMangledMesaCommand.h @@ -19,7 +19,6 @@ public: bool InitialPass(std::vector const& args, cmExecutionStatus& status) CM_OVERRIDE; std::string GetName() const CM_OVERRIDE { return "use_mangled_mesa"; } - bool IsScriptable() const CM_OVERRIDE { return true; } protected: void CopyAndFullPathMesaHeader(const char* source, const char* outdir); }; diff --git a/Source/cmVariableWatchCommand.h b/Source/cmVariableWatchCommand.h index 7096ed5..ca338e6 100644 --- a/Source/cmVariableWatchCommand.h +++ b/Source/cmVariableWatchCommand.h @@ -38,11 +38,6 @@ public: bool InitialPass(std::vector const& args, cmExecutionStatus& status) CM_OVERRIDE; - /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - /** This command does not really have a final pass but it needs to stay alive since it owns variable watch callback information. */ bool HasFinalPass() const CM_OVERRIDE { return true; } diff --git a/Source/cmWhileCommand.h b/Source/cmWhileCommand.h index daf1046..d353063 100644 --- a/Source/cmWhileCommand.h +++ b/Source/cmWhileCommand.h @@ -59,11 +59,6 @@ public: } /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "while"; } diff --git a/Source/cmWriteFileCommand.h b/Source/cmWriteFileCommand.h index 7196ccf..aea8653 100644 --- a/Source/cmWriteFileCommand.h +++ b/Source/cmWriteFileCommand.h @@ -32,11 +32,6 @@ public: cmExecutionStatus& status) CM_OVERRIDE; /** - * This determines if the command is invoked when in script mode. - */ - bool IsScriptable() const CM_OVERRIDE { return true; } - - /** * The name of the command as specified in CMakeList.txt. */ std::string GetName() const CM_OVERRIDE { return "write_file"; } -- cgit v0.12