Remove some unused functions.