Tidy.

Remove declarations of unused variables and variables declared as
functions using the `function` keyword.