Remove unused functions and methods.