Remove some useless code.