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.
Whilst reviewing views code these unused variables keep cropping up. Let's save a few cpu cycles.
Comment | File | Size | Author |
---|---|---|---|
d8.views-unused-vars.patch | 3.28 KB | alexpott | |
Comments
Comment #1
darol100 CreditAttribution: darol100 as a volunteer and commentedThis patch looks good to me. @alexpott, Should we have a meta issue to remove unused variables ?
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous at Druid commentedyep all of the variables are really unused rtbc+1
Comment #3
dawehner+1
@darol100
I think we had one in the past, and these are the remaining ones ...
@alexpott
I would like to see the Result.php be converted back to less magic php code, so something like this:
because otherwise you could easily think that all those variables are actually not in use. We aren't saving many lines of code here anyway.
Comment #4
catchCommitted/pushed to 8.0.x, thanks!