Remove some unused code.