Remove unused diagnostics.