Skip to content

Commit 6420791

Browse files
committed
minor #4289 Remove unused private methods (fabpot)
This PR was merged into the 3.x branch. Discussion ---------- Remove unused private methods Commits ------- 28dc912 Remove unused private methods
2 parents 45e167a + 28dc912 commit 6420791

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

src/Node/ModuleNode.php

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -418,14 +418,6 @@ protected function compileIsTraitable(Compiler $compiler)
418418
continue;
419419
}
420420

421-
if ($node instanceof TextNode && ctype_space($node->getAttribute('data'))) {
422-
continue;
423-
}
424-
425-
if ($node instanceof BlockReferenceNode) {
426-
continue;
427-
}
428-
429421
$traitable = false;
430422
break;
431423
}
@@ -494,19 +486,4 @@ protected function compileLoadTemplate(Compiler $compiler, $node, $var)
494486
throw new \LogicException('Trait templates can only be constant nodes.');
495487
}
496488
}
497-
498-
private function hasNodeOutputNodes(Node $node): bool
499-
{
500-
if ($node instanceof NodeOutputInterface) {
501-
return true;
502-
}
503-
504-
foreach ($node as $child) {
505-
if ($this->hasNodeOutputNodes($child)) {
506-
return true;
507-
}
508-
}
509-
510-
return false;
511-
}
512489
}

0 commit comments

Comments
 (0)