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/hal/lib/Drupal/hal/Normalizer/EntityNormalizer.php
Line 93: Unused local variable $links
Comment | File | Size | Author |
---|---|---|---|
#1 | drupal-core-remove-unused-local-variable-2081197-1.patch | 661 bytes | smira |
Comments
Comment #1
smira CreditAttribution: smira commentedmy take on the matter though i would probably opt to mark as "wont fix" instead just to be safe...
Comment #2
lorique CreditAttribution: lorique commentedThe variable is gone from EntityNormalizer->denormalize() method, and is used nowhere in the method. thus it can and has been safely removed.
Changing status. Thank you for your patch @smiro.
Comment #3
catchCommitted/pushed to 8.x, thanks!