Removes useless code