Remove unused methods and parameters