瀏覽代碼

cmComputeLinkDepends: Remove unused local generator.

Stephen Kelly 10 年之前
父節點
當前提交
040491fc58
共有 2 個文件被更改,包括 1 次插入5 次删除
  1. 1 3
      Source/cmComputeLinkDepends.cxx
  2. 0 2
      Source/cmComputeLinkDepends.h

+ 1 - 3
Source/cmComputeLinkDepends.cxx

@@ -13,7 +13,6 @@
 
 #include "cmComputeComponentGraph.h"
 #include "cmGlobalGenerator.h"
-#include "cmLocalGenerator.h"
 #include "cmMakefile.h"
 #include "cmTarget.h"
 #include "cmake.h"
@@ -179,8 +178,7 @@ cmComputeLinkDepends
   // Store context information.
   this->Target = target;
   this->Makefile = this->Target->GetMakefile();
-  this->LocalGenerator = this->Makefile->GetLocalGenerator();
-  this->GlobalGenerator = this->LocalGenerator->GetGlobalGenerator();
+  this->GlobalGenerator = this->Makefile->GetGlobalGenerator();
   this->CMakeInstance = this->GlobalGenerator->GetCMakeInstance();
 
   // The configuration being linked.

+ 0 - 2
Source/cmComputeLinkDepends.h

@@ -21,7 +21,6 @@
 
 class cmComputeComponentGraph;
 class cmGlobalGenerator;
-class cmLocalGenerator;
 class cmMakefile;
 class cmTarget;
 class cmake;
@@ -60,7 +59,6 @@ private:
   // Context information.
   cmTarget const* Target;
   cmMakefile* Makefile;
-  cmLocalGenerator* LocalGenerator;
   cmGlobalGenerator const* GlobalGenerator;
   cmake* CMakeInstance;
   bool DebugMode;