Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
other
Priority:
Minor
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
3 Sep 2013 at 14:20 UTC
Updated:
29 Jul 2014 at 22:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mrsinguyen commentedComment #2
grisendo commentedThe patch attached is not for this issue, is the corresponding to #2080539
I send to re-test because it also can't be applied via git.
I attach the real one.
Comment #3
grisendo commented#1: drupal-core-remove-unused-local-variable-2080539.patch queued for re-testing.
Comment #4
angel.hComment #5
angel.hThe patch looks fine but I get 2 more unused variables in this file when running PHPMD:
core/modules/forum/lib/Drupal/forum/Tests/ForumTest.php:528 Avoid unused parameters such as '$node_user'.
core/modules/forum/lib/Drupal/forum/Tests/ForumTest.php:629 Avoid unused parameters such as '$forum'.
They are not such performance trouble but still should be included in this ticket.
Comment #6
angel.hHere is the new patch and interdiff.
Comment #7
royal121 commentedThe latest patch applies cleanly. Thanks.
Comment #8
areke commented+1 from me as well. This looks good... RTBC
Comment #9
webchickHm. That's quite a significant change. Sending to larowlan (Forum module maintainer) for review.
Comment #10
xjmLet's also check the rest of the module for unused local variables.
Comment #11
parthipanramesh commentedLooks good!
Comment #12
xjm6: drupal-core-remove-unused-local-variable-2080543-4.patch queued for re-testing.
Comment #13
alexpottThe changes look fine to me to but @webchick has asked for @larowlan's input and the issue summary could do with an update.
Comment #14
larowlanYes, that parameter is unused as well.
Comment #15
larowlanThere are three unused use statements in forum.module - should they be removed here too?
these three:
Comment #16
alexpottAs we're cleaning unused things - yep lets remove the unused use statements too :)
Comment #17
larowlanplease don't credit me for this
Comment #18
pfrenssenLooking good!
Comment #19
webchickToo late. :P
Committed and pushed to 8.x. Thanks!