Remove unused values in function calls