Part of meta-issue #2002650: [meta] improve maintainability by removing unused local variables

File /core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/Core/Entity/Vocabulary.php

Line 120: Unused local variable $field_name
Line 123: Unused local variable $key
Line 159: Unused local variable $field_name

#1 drupal-core-remove-unused-local-variable-2081127.patch1.52 KBmrsinguyen
PASSED: [[SimpleTest]]: [MySQL] 58,328 pass(es). View
Members fund testing for the Drupal project. Drupal Association Learn more


mrsinguyen’s picture

Status: Active » Needs review
1.52 KB
PASSED: [[SimpleTest]]: [MySQL] 58,328 pass(es). View
grisendo’s picture

grisendo’s picture

Status: Needs review » Reviewed & tested by the community

Still can be applied with Git and pass tests.
Unused variables removed correctly.

alexpott’s picture

Title: Remove Unused local variable $field_name from /core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/Core/Entity/Vocabulary.php » Remove Unused local variables from /core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/Core/Entity/Vocabulary.php
Status: Reviewed & tested by the community » Fixed

Committed b072871 and pushed to 8.x. Thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.