Skip to content

Commit

Permalink
minor #4289 Remove unused private methods (fabpot)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.x branch.

Discussion
----------

Remove unused private methods

Commits
-------

28dc912 Remove unused private methods
  • Loading branch information
fabpot committed Sep 9, 2024
2 parents 45e167a + 28dc912 commit 6420791
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/Node/ModuleNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -418,14 +418,6 @@ protected function compileIsTraitable(Compiler $compiler)
continue;
}

if ($node instanceof TextNode && ctype_space($node->getAttribute('data'))) {
continue;
}

if ($node instanceof BlockReferenceNode) {
continue;
}

$traitable = false;
break;
}
Expand Down Expand Up @@ -494,19 +486,4 @@ protected function compileLoadTemplate(Compiler $compiler, $node, $var)
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;
}
}

0 comments on commit 6420791

Please sign in to comment.