Remove unused function params