minor #4289 Remove unused private methods (fabpot)

This PR was merged into the 3.x branch.

Discussion
----------

Remove unused private methods

Commits
-------

28dc912c Remove unused private methods
This commit is contained in:
Fabien Potencier
2024-09-09 08:41:55 +02:00
-23
View File
@@ -418,14 +418,6 @@ final class ModuleNode extends Node
continue;
}
if ($node instanceof TextNode && ctype_space($node->getAttribute('data'))) {
continue;
}
if ($node instanceof BlockReferenceNode) {
continue;
}
$traitable = false;
break;
}
@@ -494,19 +486,4 @@ final class ModuleNode extends Node
throw new \LogicException('Trait templates can only be constant nodes.');
}
}
private function hasNodeOutputNodes(Node $node): bool
{
if ($node instanceof NodeOutputInterface) {
return true;
}
foreach ($node as $child) {
if ($this->hasNodeOutputNodes($child)) {
return true;
}
}
return false;
}
}