code: Remove an unused automatic variable.
code: Remove an unused parameter.
code: Fix a lot of unused parameters, remove unused references.