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.
Problem/Motivation
Some use statements became unused from #2072945: Remove the $langcode parameter in EntityAccessControllerInterface::access() and friends
#2533800: Remove all unused use statements from core went in, so let's tidy these up also.
Proposed resolution
Remove the unused use statements.
Remaining tasks
Task | Novice task? | Contributor instructions | Complete? |
---|---|---|---|
Create a patch | Instructions | ||
Review patch to ensure that it fixes the issue, stays within scope, is properly documented, and follows coding standards | Instructions |
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#4 | 2584297-4.patch | 2.73 KB | YesCT |
#4 | interdiff.2584297.2.4.txt | 449 bytes | YesCT |
#2 | 2584297-2.patch | 2.29 KB | YesCT |
Comments
Comment #2
YesCT CreditAttribution: YesCT commentedComment #3
YesCT CreditAttribution: YesCT commentedtrying to get phpstorm code inspection to tell me what all the unused use statements are... and not finding the correct command.
[edit]
tim helped
shift shift
run inspection by name
(cmd-shift-a)
unused import
(option-shift-cmd-i)
Comment #4
YesCT CreditAttribution: YesCT commentedinspection shows these are all now.
Comment #5
tim.plunkettThanks! PHPStorm reports no other unused imports.
Comment #6
alexpottThis rc eligible because the removal of unused use statements is an RC target. Committed 70d81c5 and pushed to 8.0.x. Thanks!