Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Part of meta-issue #2002650: [meta, no patch] improve maintainability by removing unused local variables
File /core/modules/field/tests/modules/field_test/field_test.storage.inc
Line 31: Unused local variable $details
Line 251: Unused local variable $field_columns
Line 427: Unused local variable $field_name
Comment | File | Size | Author |
---|---|---|---|
#2 | 2080623-remove-unused-variables.patch | 584 bytes | chertzog |
Comments
Comment #1
chertzogClosed the following as duplicates:
#2080611: Remove Unused local variable $key from /core/modules/field/field.info.inc
#2080613: Remove Unused local variable $details from /core/modules/field/field.api.php
#2080617: Remove Unused local variable $key from /core/modules/field/field.form.inc
#2080619: Remove Unused local variable $field_name from /core/modules/field/field.attach.inc
#2080621: Remove Unused local variable $old_column from /core/modules/field/field.views.inc
Comment #2
chertzogMost of the closed issues had been resolved in previous commits. The file for this issue no longer exists.
Attached is a patch for #2080617: Remove Unused local variable $key from /core/modules/field/field.form.inc.
Comment #3
SeyV CreditAttribution: SeyV commentedClosing this issue due to this file has been deleted in #2079025: Remove dead code (e.g. field_test.storage.inc) due to entity storage refactoring.
Patch in #2 is unrelated to this issue.