Remove completely unused fields.

Discovered by FindBugs.
Remove unused parameter.

Discovered by FindBugs.