To slay a dragon; also used to describe a great undertaking or heroic struggle.
useless skill
Literary; describes a skill that is extremely high or difficult to learn but has no practical application, based on the story of a man who spent his fortune learning how to slay dragons when no dragons existed.