Swords themselves have become obsolete, but you'd be surprised how often bayonets are still used. I remember a story about a couple of British commandos in Afghanistan taking out like 50 Taliban fighters with their bayonets after they ran out of ammo.