Remove unused variables and parameters.