From 7cd2e4f3120aa7e588b6f22888a03e5f45a7afed Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Fri, 9 Oct 2026 09:50:51 -0700 Subject: [PATCH] Delete unused showNotificationsDeniedError. --- .../General/GeneralPrefencesViewController.swift | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Mac/Preferences/General/GeneralPrefencesViewController.swift b/Mac/Preferences/General/GeneralPrefencesViewController.swift index ce86e6979..9da98e2cf 100644 --- a/Mac/Preferences/General/GeneralPrefencesViewController.swift +++ b/Mac/Preferences/General/GeneralPrefencesViewController.swift @@ -234,19 +234,6 @@ private extension GeneralPreferencesViewController { } } - func showNotificationsDeniedError() { - let updateAlert = NSAlert() - updateAlert.alertStyle = .informational - updateAlert.messageText = NSLocalizedString("Enable Notifications", comment: "Notifications") - updateAlert.informativeText = NSLocalizedString("To enable notifications, open Notifications in System Preferences, then find NetNewsWire in the list.", comment: "To enable notifications, open Notifications in System Preferences, then find NetNewsWire in the list.") - updateAlert.addButton(withTitle: NSLocalizedString("Open System Preferences", comment: "Open System Preferences")) - updateAlert.addButton(withTitle: NSLocalizedString("Close", comment: "Close")) - let modalResponse = updateAlert.runModal() - if modalResponse == .alertFirstButtonReturn { - NSWorkspace.shared.open(URL(string: "x-apple.systempreferences:com.apple.preference.notifications")!) - } - } - @objc var openFeedsInDefaultNewsReader: Bool { get { return AppDefaults.shared.subscribeToFeedsInDefaultBrowser