فهرست منبع

ENH: Removed "Used" mark from custom commands. It is no longer needed or checked by any generators.

Brad King 18 سال پیش
والد
کامیت
09289aadb6
3فایلهای تغییر یافته به همراه0 افزوده شده و 18 حذف شده
  1. 0 3
      Source/cmCustomCommand.cxx
  2. 0 5
      Source/cmCustomCommand.h
  3. 0 10
      Source/cmTarget.cxx

+ 0 - 3
Source/cmCustomCommand.cxx

@@ -22,7 +22,6 @@ cmCustomCommand::cmCustomCommand()
   this->HaveComment = false;
   this->HaveComment = false;
   this->EscapeOldStyle = true;
   this->EscapeOldStyle = true;
   this->EscapeAllowMakeVars = false;
   this->EscapeAllowMakeVars = false;
-  this->Used = false;
 }
 }
 
 
 //----------------------------------------------------------------------------
 //----------------------------------------------------------------------------
@@ -36,7 +35,6 @@ cmCustomCommand::cmCustomCommand(const cmCustomCommand& r):
   EscapeAllowMakeVars(r.EscapeAllowMakeVars),
   EscapeAllowMakeVars(r.EscapeAllowMakeVars),
   EscapeOldStyle(r.EscapeOldStyle)
   EscapeOldStyle(r.EscapeOldStyle)
 {
 {
-  this->Used = false;
 }
 }
 
 
 //----------------------------------------------------------------------------
 //----------------------------------------------------------------------------
@@ -56,7 +54,6 @@ cmCustomCommand::cmCustomCommand(const std::vector<std::string>& outputs,
 {
 {
   this->EscapeOldStyle = true;
   this->EscapeOldStyle = true;
   this->EscapeAllowMakeVars = false;
   this->EscapeAllowMakeVars = false;
-  this->Used = false;
 }
 }
 
 
 //----------------------------------------------------------------------------
 //----------------------------------------------------------------------------

+ 0 - 5
Source/cmCustomCommand.h

@@ -68,10 +68,6 @@ public:
   bool GetEscapeAllowMakeVars() const;
   bool GetEscapeAllowMakeVars() const;
   void SetEscapeAllowMakeVars(bool b);
   void SetEscapeAllowMakeVars(bool b);
 
 
-  /** set get the used status of the command */ 
-  void SetUsed() { this->Used = true;}
-  bool IsUsed() const { return this->Used;}
- 
 private:
 private:
   std::vector<std::string> Outputs;
   std::vector<std::string> Outputs;
   std::vector<std::string> Depends;
   std::vector<std::string> Depends;
@@ -81,7 +77,6 @@ private:
   std::string WorkingDirectory;
   std::string WorkingDirectory;
   bool EscapeAllowMakeVars;
   bool EscapeAllowMakeVars;
   bool EscapeOldStyle;
   bool EscapeOldStyle;
-  bool Used;
 };
 };
 
 
 #endif
 #endif

+ 0 - 10
Source/cmTarget.cxx

@@ -648,16 +648,6 @@ void cmTarget::TraceVSDependencies(std::string projFile,
     // finished with this SF move to the next
     // finished with this SF move to the next
     srcFilesToProcess.pop();
     srcFilesToProcess.pop();
     }
     }
-  // mark all custom commands in the targets list of source files as used.
-  for(std::vector<cmSourceFile*>::iterator i =  this->SourceFiles.begin();
-      i != this->SourceFiles.end(); ++i)
-    {
-    cmCustomCommand* cc = (*i)->GetCustomCommand();
-    if(cc)
-      {
-      cc->SetUsed();
-      }
-    }
 }
 }
 
 
 void cmTarget::GenerateSourceFilesFromSourceLists( cmMakefile &mf)
 void cmTarget::GenerateSourceFilesFromSourceLists( cmMakefile &mf)