From eca66624065a5c280637fd45a6b6cab588b2a902 Mon Sep 17 00:00:00 2001 From: webeweb Date: Mon, 16 Jul 2018 17:41:40 +0200 Subject: [PATCH] Remove unused code --- Twig/Extension/Component/AbstractComponentTwigExtension.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Twig/Extension/Component/AbstractComponentTwigExtension.php b/Twig/Extension/Component/AbstractComponentTwigExtension.php index 64f72e25..5409e240 100644 --- a/Twig/Extension/Component/AbstractComponentTwigExtension.php +++ b/Twig/Extension/Component/AbstractComponentTwigExtension.php @@ -11,7 +11,6 @@ namespace WBW\Bundle\BootstrapBundle\Twig\Extension\Component; -use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Translation\TranslatorInterface; use WBW\Bundle\BootstrapBundle\Helper\NavigationTreeHelper; use WBW\Bundle\BootstrapBundle\Navigation\NavigationNode; @@ -144,9 +143,6 @@ protected function bootstrapBreadcrumbs(NavigationTree $tree) { // Handle each breadcrumb node. for ($i = 0; $i < $count; ++$i) { - if (false === ($nodes[$i] instanceOf NavigationNode)) { - continue; - } $innerHTML[] = $this->bootstrapBreadcrumb($nodes[$i], $count === $i + 1); }