From 43acec6e3db7a50d1975e1f168ffa46c3626f6c0 Mon Sep 17 00:00:00 2001 From: webchick Date: Thu, 29 Aug 2013 08:13:52 -0700 Subject: [PATCH] Issue #2072551 by legolasbo: Remove Unused local variable from /core/modules/file/file.field.inc. --- .../views/lib/Drupal/views/Plugin/views/HandlerBase.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/HandlerBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/HandlerBase.php index 58a7e531dfc..51d3a99c819 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/HandlerBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/HandlerBase.php @@ -90,7 +90,6 @@ abstract class HandlerBase extends PluginBase { public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) { parent::init($view, $display, $options); - $display_id = $this->view->current_display; // Check to see if this handler type is defaulted. Note that // we have to do a lookup because the type is singular but the // option is stored as the plural. @@ -108,9 +107,6 @@ abstract class HandlerBase extends PluginBase { if (isset($types[$plural]['plural'])) { $plural = $types[$plural]['plural']; } - if ($this->view->display_handler->isDefaulted($plural)) { - $display_id = 'default'; - } $this->unpackOptions($this->options, $options); @@ -331,7 +327,6 @@ abstract class HandlerBase extends PluginBase { */ public function buildGroupByForm(&$form, &$form_state) { $display_id = $form_state['display_id']; - $types = ViewExecutable::viewsHandlerTypes(); $type = $form_state['type']; $id = $form_state['id'];