Make something amazing, for anyone, at DrupalCon. Standard prices end on August 26.
See meta #2002650: [meta] improve maintainability by removing unused local variables
core/includes/authorize.inc, line numbers identified below.
this looks good. within scope and nothing tricky.
rtbc if testbot says ok.
The last submitted patch, 2002706-2-remove_unused_variables.patch, failed testing.
Dude, please update the task on drupalofficehours if you taken task from there.
#2: 2002706-2-remove_unused_variables.patch queued for re-testing.
Patch segfaulted apache on the testbot. Without investigating further, I'm not sure if it was the patch or the bot's fault.
First time through it passed all tests except for Drupal\system\Tests\Form\RedirectTest, second time looks like environment choked on setup. This is a simple edit, and should clearly not cause any errors or changes to the operation of the functions.
Giving it one more shot through the testbot, will also manually conduct tests to see if this edit impacts behavior.
This should be ok :)
Fixed title as this is not a big performance win.. but unused variables are a code maintainability issue... 2 less lines of code to maintain!
Committed 6455242 and pushed to 8.x. Thanks!
Automatically closed -- issue fixed for 2 weeks with no activity.
Drupal is a registered trademark of Dries Buytaert.