Remove unused function parametes.

Some functions have unused and unnecessary parameters. They should be removed if there is no special reason.