Remove unneeded code.