Remove some unneeded code.