浏览代码

cmListFile: Remove unused member.

It is written, but not read since commit v2.4.0~575 (ENH: Since list file
cache does not make much sense any more ..., 2006-02-07).
Stephen Kelly 10 年之前
父节点
当前提交
257c16495a
共有 2 个文件被更改,包括 0 次插入11 次删除
  1. 0 6
      Source/cmListFileCache.cxx
  2. 0 5
      Source/cmListFileCache.h

+ 0 - 6
Source/cmListFileCache.cxx

@@ -146,18 +146,12 @@ bool cmListFile::ParseFile(const char* filename,
     }
 
   bool parseError = false;
-  this->ModifiedTime = cmSystemTools::ModifiedTime(filename);
 
   {
   cmListFileParser parser(this, mf, filename);
   parseError = !parser.ParseFile();
   }
 
-  if(parseError)
-    {
-    this->ModifiedTime = 0;
-    }
-
   // do we need a cmake_policy(VERSION call?
   if(topLevel)
   {

+ 0 - 5
Source/cmListFileCache.h

@@ -85,15 +85,10 @@ class cmListFileBacktrace: public std::vector<cmListFileContext>
 
 struct cmListFile
 {
-  cmListFile()
-    :ModifiedTime(0)
-    {
-    }
   bool ParseFile(const char* path,
                  bool topLevel,
                  cmMakefile *mf);
 
-  long int ModifiedTime;
   std::vector<cmListFileFunction> Functions;
 };