Remove unused variable bindings

Proprietary

Removes unused local variables and private members whose name starts with _ (underscore-prefixed binding) and whose initializer is a literal. Declarations that are referenced, visible outside the source file, or have any other initializer are kept.

org.openrewrite.scala.cleanup.RemoveUnusedBinding
mod run . --recipe=org.openrewrite.scala.cleanup.RemoveUnusedBinding

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.