Delete unused showNotificationsDeniedError.

This commit is contained in:
Brent Simmons committed 2026-10-09 09:50:51 -07:00
1 parent 1690695eed
commit 7cd2e4f312
1 file changed
-13
@@ -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