Skip to content

Commit

Permalink
Remove unused private methods
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Sep 9, 2024
1 parent bf6b7ae commit 28dc912
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 28dc912

Please sign in to comment.