Remove unnecessary functions.