Peter, if older 2 wire circuits were a code violation, then how would they be wired to an older 3 prong plug with 2 hots and a center ground? Which is what was used everywhere. The center conductor (ground) was used as a current carring neutral for any 120 volt on the dryer.
The Golden Rule - "The man with the gold makes the rule"