Remove useless parameters to some functions.