From bd3791cbde33cb0ab724655072daa6bd24086ccc Mon Sep 17 00:00:00 2001 From: webchick Date: Sun, 22 Dec 2013 12:22:09 -0800 Subject: [PATCH] Issue #2081169 by rivimey, areke, smiro: Remove unused local variables from the link module. --- .../link/lib/Drupal/link/Plugin/Field/FieldType/LinkItem.php | 1 - 1 file changed, 1 deletion(-) diff --git a/core/modules/link/lib/Drupal/link/Plugin/Field/FieldType/LinkItem.php b/core/modules/link/lib/Drupal/link/Plugin/Field/FieldType/LinkItem.php index edd2d96b520..3c914aea3f1 100644 --- a/core/modules/link/lib/Drupal/link/Plugin/Field/FieldType/LinkItem.php +++ b/core/modules/link/lib/Drupal/link/Plugin/Field/FieldType/LinkItem.php @@ -104,7 +104,6 @@ class LinkItem extends ConfigFieldItemBase { * {@inheritdoc} */ public function preSave() { - $item = $this->getValue(); // Trim any spaces around the URL and link text. $this->url = trim($this->url); $this->title = trim($this->title);