Prune unused diagnostics.

Courtesy of utils/find-unused-diagnostics.sh.