Remove unused functions.