Reports declarations that are not used.
The quick-fix removes the unused declaration.
In the Options below, you can control if the inspection should work for public and/or local declarations.
In case of local declarations, on top of enabling and disabling the inspection, you can also make it dependent
on the existence of one of three compiler options: -Wunused:locals, -Wunused:linted, or -Xlint:unused.
Example:
def test(): Int = {
val unused = 3
3
}
After the quick-fix is applied:
def test(): Int = {
3
}