remove unused params in function calls