Explorar o código

cmIfCommand: Simplify execution context construction

Brad King %!s(int64=9) %!d(string=hai) anos
pai
achega
7503deb2c5
Modificáronse 1 ficheiros con 2 adicións e 8 borrados
  1. 2 8
      Source/cmIfCommand.cxx

+ 2 - 8
Source/cmIfCommand.cxx

@@ -203,15 +203,9 @@ bool cmIfCommand
 
   cmake::MessageType status;
 
-  cmListFileContext execContext = this->Makefile->GetExecutionContext();
-
-  cmCommandContext commandContext;
-  commandContext.Line = execContext.Line;
-  commandContext.Name = execContext.Name;
-
   cmConditionEvaluator conditionEvaluator(
-        *(this->Makefile), cmListFileContext::FromCommandContext(
-          commandContext, execContext.FilePath),
+        *(this->Makefile),
+        this->Makefile->GetExecutionContext(),
         this->Makefile->GetBacktrace());
 
   bool isTrue = conditionEvaluator.IsTrue(