Removes useless code.