Remove unused private methods

This commit is contained in:
Fabien Potencier
2024-09-09 08:15:28 +02:00
parent bf6b7ae53d
commit 28dc912c0e
-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;
}
}