From 658bfc5c525bd21ecd68847cd19bda7102245c35 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Mon, 6 Jul 2015 02:02:02 +0200 Subject: [PATCH] cmMakefile: Remove redundant condition from policy status computation. --- Source/cmMakefile.cxx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 7a35a26af..ab8499f83 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -4763,11 +4763,6 @@ cmMakefile::GetPolicyStatus(cmPolicies::PolicyID id) const // current setting and tell the caller. if(status != cmPolicies::NEW) { - if(status == cmPolicies::REQUIRED_ALWAYS || - status == cmPolicies::REQUIRED_IF_USED) - { - return status; - } cmPolicies::PolicyStatus def = cmPolicies::GetPolicyStatus(id); if(def == cmPolicies::REQUIRED_ALWAYS || def == cmPolicies::REQUIRED_IF_USED)