You are permitted to use an ungrounded snap switch for replacements only, and only if there is no ground in the box. I think they added the snap switch bonding requirement around 1987 or so. Here's the code on the matter, if it interests you:
250.147 Bonding of General-Use Snap Switches.
Exception: Where no equipment grounding conductor exists
within the snap-switch enclosure, a snap switch without
a terminal for connecting the equipment grounding conductor
shall be permitted for replacement purposes only. A
snap switch wired under the provisions of this exception
and located within reach of earth, grade conducting floors,
or other conducting surfaces shall be provided with a faceplate
of nonconducting, noncombustible material.