Remove unused parameters from private method.

Remove unused parameters from private method, reduce scope of local variables.