Fixes a small logic bug when counting unused methods

What does this MR do and why?

If the same method name is listed as unused twice, we could have a mismatch between unused.count and current_unused_names so calculate current_unused_names earlier and use its value for logic flow.

Merge request reports

Loading