Selaa lähdekoodia

cmCommand: Remove IsDiscouraged interface.

This used to affect documentation, but does not affect the Sphinx
documentation.
Stephen Kelly 10 vuotta sitten
vanhempi
sitoutus
5642449a69

+ 0 - 1
Source/cmBuildNameCommand.h

@@ -23,7 +23,6 @@ public:
                            cmExecutionStatus &status);
   virtual std::string GetName() const {return "build_name";}
   virtual bool IsScriptable() const { return true; }
-  virtual bool IsDiscouraged() const { return true; }
 };
 
 

+ 0 - 9
Source/cmCommand.h

@@ -101,15 +101,6 @@ public:
     return false;
     }
 
-  /**
-   * This determines if usage of the method is discouraged or not.
-   * This is currently only used for generating the documentation.
-   */
-  virtual bool IsDiscouraged() const
-    {
-    return false;
-    }
-
   /**
    * This is used to avoid including this command
    * in documentation. This is mainly used by

+ 0 - 6
Source/cmExecProgramCommand.h

@@ -50,12 +50,6 @@ public:
    */
   virtual bool IsScriptable() const { return true; }
 
-  /** This command is kept for compatibility with older CMake versions. */
-  virtual bool IsDiscouraged() const
-    {
-    return true;
-    }
-
   cmTypeMacro(cmExecProgramCommand, cmCommand);
 private:
   static bool RunCommand(const char* command, std::string& output,

+ 0 - 1
Source/cmExportLibraryDependenciesCommand.h

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

+ 0 - 6
Source/cmInstallFilesCommand.h

@@ -52,12 +52,6 @@ public:
   virtual void FinalPass();
   virtual bool HasFinalPass() const { return !this->IsFilesForm; }
 
-  /** This command is kept for compatibility with older CMake versions. */
-  virtual bool IsDiscouraged() const
-    {
-    return true;
-    }
-
   cmTypeMacro(cmInstallFilesCommand, cmCommand);
 
 protected:

+ 0 - 6
Source/cmInstallProgramsCommand.h

@@ -53,12 +53,6 @@ public:
 
   virtual bool HasFinalPass() const { return true; }
 
-  /** This command is kept for compatibility with older CMake versions. */
-  virtual bool IsDiscouraged() const
-    {
-    return true;
-    }
-
   cmTypeMacro(cmInstallProgramsCommand, cmCommand);
 
 protected:

+ 0 - 6
Source/cmInstallTargetsCommand.h

@@ -44,12 +44,6 @@ public:
    */
   virtual std::string GetName() const { return "install_targets";}
 
-  /** This command is kept for compatibility with older CMake versions. */
-  virtual bool IsDiscouraged() const
-    {
-    return true;
-    }
-
   cmTypeMacro(cmInstallTargetsCommand, cmCommand);
 };
 

+ 0 - 6
Source/cmLinkLibrariesCommand.h

@@ -44,12 +44,6 @@ public:
    */
   virtual std::string GetName() const { return "link_libraries";}
 
-  /** This command is kept for compatibility with older CMake versions. */
-  virtual bool IsDiscouraged() const
-    {
-    return true;
-    }
-
   cmTypeMacro(cmLinkLibrariesCommand, cmCommand);
 };
 

+ 0 - 1
Source/cmLoadCommandCommand.h

@@ -21,7 +21,6 @@ public:
   virtual bool InitialPass(std::vector<std::string> const& args,
                            cmExecutionStatus &status);
   virtual std::string GetName() const {return "load_command";}
-  virtual bool IsDiscouraged() const { return true; }
   cmTypeMacro(cmLoadCommandCommand, cmCommand);
 };
 

+ 0 - 6
Source/cmMakeDirectoryCommand.h

@@ -51,12 +51,6 @@ public:
    */
   virtual bool IsScriptable() const { return true; }
 
-  /** This command is kept for compatibility with older CMake versions. */
-  virtual bool IsDiscouraged() const
-    {
-    return true;
-    }
-
   cmTypeMacro(cmMakeDirectoryCommand, cmCommand);
 };
 

+ 0 - 1
Source/cmOutputRequiredFilesCommand.h

@@ -23,7 +23,6 @@ public:
   virtual bool InitialPass(std::vector<std::string> const& args,
                            cmExecutionStatus &status);
   virtual std::string GetName() const { return "output_required_files";}
-  virtual bool IsDiscouraged() const { return true; }
 
   void ListDependencies(cmDependInformation const *info,
                         FILE *fout,

+ 0 - 6
Source/cmRemoveCommand.h

@@ -47,12 +47,6 @@ public:
    */
   virtual std::string GetName() const {return "remove";}
 
-  /** This command is kept for compatibility with older CMake versions. */
-  virtual bool IsDiscouraged() const
-    {
-    return true;
-    }
-
   cmTypeMacro(cmRemoveCommand, cmCommand);
 };
 

+ 0 - 6
Source/cmSubdirCommand.h

@@ -44,12 +44,6 @@ public:
    */
   virtual std::string GetName() const { return "subdirs";}
 
-  /** This command is kept for compatibility with older CMake versions. */
-  virtual bool IsDiscouraged() const
-    {
-    return true;
-    }
-
   cmTypeMacro(cmSubdirCommand, cmCommand);
 };
 

+ 0 - 1
Source/cmSubdirDependsCommand.h

@@ -21,7 +21,6 @@ public:
   virtual bool InitialPass(std::vector<std::string> const& args,
                            cmExecutionStatus &status);
   virtual std::string GetName() const { return "subdir_depends";}
-  virtual bool IsDiscouraged() const { return true; }
   cmTypeMacro(cmSubdirDependsCommand, cmCommand);
 };
 

+ 0 - 1
Source/cmUseMangledMesaCommand.h

@@ -23,7 +23,6 @@ public:
                            cmExecutionStatus &status);
   virtual std::string GetName() const { return "use_mangled_mesa";}
   virtual bool IsScriptable() const { return true; }
-  virtual bool IsDiscouraged() const { return true; }
 protected:
   void CopyAndFullPathMesaHeader(const char* source,
                                  const char* outdir);

+ 0 - 1
Source/cmUtilitySourceCommand.h

@@ -22,7 +22,6 @@ public:
   virtual bool InitialPass(std::vector<std::string> const& args,
                            cmExecutionStatus &status);
   virtual std::string GetName() const { return "utility_source";}
-  virtual bool IsDiscouraged() const { return true; }
 };
 
 #endif

+ 0 - 1
Source/cmVariableRequiresCommand.h

@@ -22,7 +22,6 @@ public:
   virtual bool InitialPass(std::vector<std::string> const& args,
                            cmExecutionStatus &status);
   virtual std::string GetName() const { return "variable_requires";}
-  virtual bool IsDiscouraged() const { return true; }
 };
 
 

+ 0 - 6
Source/cmWriteFileCommand.h

@@ -46,12 +46,6 @@ public:
    */
   virtual std::string GetName() const { return "write_file";}
 
-  /** This command is kept for compatibility with older CMake versions. */
-  virtual bool IsDiscouraged() const
-    {
-    return true;
-    }
-
   cmTypeMacro(cmWriteFileCommand, cmCommand);
 };