Remove useless code.
Nicer warning for =item type mismatch.