Let's all hope all us Yorkie parents will NEVER have to face that decision. And as some have said, allergies can develop at ANY TIME. I can't even eat lobster anymore, out of the blue.
It is very hard to say what one will do until you are at that point. Poor Cody, I hope that he finds a new home where his former parents will still visit.