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.
$new_node doesn't seem to be used in tracker.test
Remove it if it's not needed.
Comment | File | Size | Author |
---|---|---|---|
#11 | remove-unused-var-1338110-11.patch | 365 bytes | oriol_e9g |
#5 | removing_unused_new_node_from_tracker_test-1338110-5.patch | 385 bytes | aaron.r.carlton |
#2 | removing_unused_new_node_from_tracker_test-1338110-2.patch | 365 bytes | aaron.r.carlton |
Comments
Comment #1
marcingy CreditAttribution: marcingy commentedThe tests pass with this removed - taging as novice
Comment #2
aaron.r.carlton CreditAttribution: aaron.r.carlton commentedJust rolled a patch with the instance variable removed. That's all that is needed?
Comment #3
aaron.r.carlton CreditAttribution: aaron.r.carlton commentedComment #5
aaron.r.carlton CreditAttribution: aaron.r.carlton commentedRolled off master, not 8.x version. Trying again.
Comment #6
aenw CreditAttribution: aenw commented@aaron.r.carlton re:#2 yup, that's all that's needed. I noticed this while doing #1315214: Clean up API docs for the tracker module and only had time to post the issue. Glad someone jumped on it. :-)
Looks good to me, but someone else should apply the patch and test it too, before it's moved to RBTC, just to make sure.
Comment #7
aenw CreditAttribution: aenw commentedSomehow the status was changed to 'active' when I posted my comment. Should still be set to 'needs review'.
Comment #8
Niklas Fiekas CreditAttribution: Niklas Fiekas commentedIt wasn't even used in the commit that introduced it: http://drupalcode.org/project/drupal.git/commitdiff/756131a862b3. Occurs in 7.x, too.
Comment #9
catchCommitted/pushed to 8.x, moving to 7.x for backport.
Comment #10
Tor Arne Thune CreditAttribution: Tor Arne Thune commentedComment #11
oriol_e9gComment #12
oriol_e9gComment #13
Niklas Fiekas CreditAttribution: Niklas Fiekas commentedThanks ;)
Comment #14
webchickOops. Nice catch!
Committed and pushed to 7.x. Thanks!