mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-20 14:36:57 +00:00
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:
@@ -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