[cmake-commits] king committed cmCustomCommand.cxx 1.22 1.23 cmCustomCommand.h 1.21 1.22 cmTarget.cxx 1.147 1.148

cmake-commits at cmake.org cmake-commits at cmake.org
Mon May 28 11:18:17 EDT 2007


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv10296

Modified Files:
	cmCustomCommand.cxx cmCustomCommand.h cmTarget.cxx 
Log Message:
ENH: Removed "Used" mark from custom commands.  It is no longer needed or checked by any generators.


Index: cmCustomCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmCustomCommand.cxx,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- cmCustomCommand.cxx	4 Oct 2006 19:24:24 -0000	1.22
+++ cmCustomCommand.cxx	28 May 2007 15:18:15 -0000	1.23
@@ -22,7 +22,6 @@
   this->HaveComment = false;
   this->EscapeOldStyle = true;
   this->EscapeAllowMakeVars = false;
-  this->Used = false;
 }
 
 //----------------------------------------------------------------------------
@@ -36,7 +35,6 @@
   EscapeAllowMakeVars(r.EscapeAllowMakeVars),
   EscapeOldStyle(r.EscapeOldStyle)
 {
-  this->Used = false;
 }
 
 //----------------------------------------------------------------------------
@@ -56,7 +54,6 @@
 {
   this->EscapeOldStyle = true;
   this->EscapeAllowMakeVars = false;
-  this->Used = false;
 }
 
 //----------------------------------------------------------------------------

Index: cmTarget.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmTarget.cxx,v
retrieving revision 1.147
retrieving revision 1.148
diff -u -d -r1.147 -r1.148
--- cmTarget.cxx	28 May 2007 14:25:03 -0000	1.147
+++ cmTarget.cxx	28 May 2007 15:18:15 -0000	1.148
@@ -648,16 +648,6 @@
     // finished with this SF move to the next
     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)

Index: cmCustomCommand.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmCustomCommand.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- cmCustomCommand.h	9 May 2007 12:25:45 -0000	1.21
+++ cmCustomCommand.h	28 May 2007 15:18:15 -0000	1.22
@@ -68,10 +68,6 @@
   bool GetEscapeAllowMakeVars() const;
   void SetEscapeAllowMakeVars(bool b);
 
-  /** set get the used status of the command */ 
-  void SetUsed() { this->Used = true;}
-  bool IsUsed() const { return this->Used;}
- 
 private:
   std::vector<std::string> Outputs;
   std::vector<std::string> Depends;
@@ -81,7 +77,6 @@
   std::string WorkingDirectory;
   bool EscapeAllowMakeVars;
   bool EscapeOldStyle;
-  bool Used;
 };
 
 #endif



More information about the Cmake-commits mailing list