cmMakefile: Remove redundant condition from policy status computation.

This commit is contained in:
Stephen Kelly 2015-07-06 02:02:02 +02:00
parent f4a25874a2
commit 658bfc5c52
1 changed files with 0 additions and 5 deletions

View File

@ -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)