From b72810c7aea7ea9d7fa90ca2b0aa1c08dc3705e4 Mon Sep 17 00:00:00 2001 From: Chi Date: Fri, 17 Mar 2017 18:03:06 +0300 Subject: [PATCH] Remove unused active trail service. --- src/TwigExtension.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/TwigExtension.php b/src/TwigExtension.php index c9d3864..dc20e33 100644 --- a/src/TwigExtension.php +++ b/src/TwigExtension.php @@ -4,7 +4,6 @@ namespace Drupal\twig_tweak; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Entity\EntityTypeManagerInterface; -use Drupal\Core\Menu\MenuActiveTrailInterface; use Drupal\Core\Menu\MenuLinkTreeInterface; use Drupal\Core\Routing\RouteMatchInterface; use Drupal\Core\Site\Settings; @@ -51,13 +50,6 @@ class TwigExtension extends \Twig_Extension { */ protected $menuTree; - /** - * The active menu trail service. - * - * @var \Drupal\Core\Menu\MenuActiveTrailInterface - */ - protected $menuActiveTrail; - /** * TwigExtension constructor. * @@ -71,16 +63,13 @@ class TwigExtension extends \Twig_Extension { * The route match. * @param \Drupal\Core\Menu\MenuLinkTreeInterface $menu_tree * The menu tree service. - * @param \Drupal\Core\Menu\MenuActiveTrailInterface $menu_active_trail - * The active menu trail service. */ - public function __construct(EntityTypeManagerInterface $entity_type_manager, Token $token, ConfigFactoryInterface $config_factory, RouteMatchInterface $route_match, MenuLinkTreeInterface $menu_tree, MenuActiveTrailInterface $menu_active_trail) { + public function __construct(EntityTypeManagerInterface $entity_type_manager, Token $token, ConfigFactoryInterface $config_factory, RouteMatchInterface $route_match, MenuLinkTreeInterface $menu_tree) { $this->entityTypeManager = $entity_type_manager; $this->token = $token; $this->configFactory = $config_factory; $this->routeMatch = $route_match; $this->menuTree = $menu_tree; - $this->menuActiveTrail = $menu_active_trail; } /**