cmGeneratorExpressionNode: Remove dead code from ConfigurationTestNode

Commit 910ada1a88 (Genex: $<CONFIG:> syntax of all entries checked,
2023-01-17) tweaked how ConfigurationTestNode::Evaluate validates its
arguments, which resulted in the removal of the body of an `if` but not
the `if` itself. Since the condition does not have side effects, this
resulted in superfluous leftover code. Remove this.
This commit is contained in:
Matthew Woehlke
2025-07-09 14:38:10 -04:00
committed by Brad King
parent a69131cd88
commit 9b36e49ad9

View File

@@ -2227,8 +2227,6 @@ static const struct ConfigurationTestNode : public cmGeneratorExpressionNode
return configurationNode.Evaluate(parameters, context, content, nullptr);
}
static cmsys::RegularExpression configValidator("^[A-Za-z0-9_]*$");
if (!configValidator.find(parameters.front())) {
}
context->HadContextSensitiveCondition = true;
bool firstParam = true;