mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-01 13:07:22 +00:00
Remove unused private methods
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user