diff options
author | Brad King <brad.king@kitware.com> | 2020-09-25 13:17:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-09-28 13:49:08 (GMT) |
commit | e456dae6693dc3a79e2708481a969b43cda188cf (patch) | |
tree | d4bb0f716d018dff91eeee9bc73b4dcfb54cbcc8 /Source/cmConditionEvaluator.h | |
parent | 0100a4943eb862409ad0cf9619eca93e170dea4a (diff) | |
download | CMake-e456dae6693dc3a79e2708481a969b43cda188cf.zip CMake-e456dae6693dc3a79e2708481a969b43cda188cf.tar.gz CMake-e456dae6693dc3a79e2708481a969b43cda188cf.tar.bz2 |
cmConditionEvaluator: Remove extra copy of execution context
The execution context passed to the constructor always matches the top
of the backtrace, so the former can be removed in favor of using only
the latter.
Diffstat (limited to 'Source/cmConditionEvaluator.h')
-rw-r--r-- | Source/cmConditionEvaluator.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/cmConditionEvaluator.h b/Source/cmConditionEvaluator.h index a4cedff..cf00ede 100644 --- a/Source/cmConditionEvaluator.h +++ b/Source/cmConditionEvaluator.h @@ -21,8 +21,7 @@ class cmConditionEvaluator public: using cmArgumentList = std::list<cmExpandedCommandArgument>; - cmConditionEvaluator(cmMakefile& makefile, cmListFileContext context, - cmListFileBacktrace bt); + cmConditionEvaluator(cmMakefile& makefile, cmListFileBacktrace bt); // this is a shared function for both If and Else to determine if the // arguments were valid, and if so, was the response true. If there is @@ -79,7 +78,6 @@ private: MessageType& status); cmMakefile& Makefile; - cmListFileContext ExecutionContext; cmListFileBacktrace Backtrace; cmPolicies::PolicyStatus Policy12Status; cmPolicies::PolicyStatus Policy54Status; |