mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-04 04:03:22 +03: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:
1 parent
a69131cd88
commit
9b36e49ad9
1 file changed
-2
@@ -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