mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
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:
committed by
Brad King
parent
a69131cd88
commit
9b36e49ad9
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user