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.
unflagByFlagging() is only called in one place, and it's only a single line.
Also, it should not be called from outside the service, since that would bypass event triggering.
So the best thing I think would be to fold it into the calling method.
Comment | File | Size | Author |
---|---|---|---|
#1 | delete-2477781-1.patch | 1.23 KB | martin107 |
Comments
Comment #1
martin107 CreditAttribution: martin107 commentedI'd seen this before it was in the back of my mind....and thought the same thing.
its a self contained issue, easy to confirm, easy to solve.
There are lots of intricate intertwined issues coming into focus. My preference is to declutter the todo list by clearing all the isolatable ones early rather than adding to the flaggings metadata heap ;)
Comment #2
martin107 CreditAttribution: martin107 commentedComment #3
joachim CreditAttribution: joachim commentedYup, cleaning up the small stuff to make it clearer to see what we're doing when we're refactoring is definitely a good way to go.