Remove unused diagnostics