Replace UNUSED(param) with int /*param*/.

This is already used in many places, and has the advantage of being
self-documenting; if someone changes the function to use the argument
after all, they might forget to remove the UNUSED but they must
uncomment the argument (this is not just hypothetical, this commit also
removes two such cases).
Remove unused parameters.