summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2013-12-22 20:22:09 (GMT)
committerwebchick2013-12-22 20:22:09 (GMT)
commitbd3791cbde33cb0ab724655072daa6bd24086ccc (patch)
tree40b77bfc1ca386edaa24d33c44fcb6fb4df13744
parent6342a1355be9a76c2f814ac33d3b62b75b66716b (diff)
Issue #2081169 by rivimey, areke, smiro: Remove unused local variables from the link module.
-rw-r--r--core/modules/link/lib/Drupal/link/Plugin/Field/FieldType/LinkItem.php1
1 files changed, 0 insertions, 1 deletions
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 edd2d96..3c914ae 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);