Remove some unused function calls.