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/system/lib/Drupal/system/Tests/Image/ToolkitGdTest.php
Line 250: Unused local variable $correct_colors
Comment | File | Size | Author |
---|---|---|---|
#1 | 2080103-remove-unused-variables-1.patch | 738 bytes | rhm5000 |
Comments
Comment #1
rhm5000 CreditAttribution: rhm5000 commentedComment #2
longwaveComment #3
catchHmm this actually looks like missing test coverage that was intended but never implemented. Since it's not there let's remove the variable, but please open an issue to add the coverage back and link from here?
Comment #4
alexpottCommitted a34cb25 and pushed to 8.x. Thanks!
Committed as part of a merged commit for #2002650: [meta, no patch] improve maintainability by removing unused local variables
It does the correct color test later in the same test...