From f611d9ccac5b871fd174b26d527c96f89657459f Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Sat, 29 Jan 2022 21:09:44 +0800 Subject: [PATCH] removes dead code --- iOS/Settings/NotificationsTableViewCell.swift | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/iOS/Settings/NotificationsTableViewCell.swift b/iOS/Settings/NotificationsTableViewCell.swift index 36c3882f8..1058687ec 100644 --- a/iOS/Settings/NotificationsTableViewCell.swift +++ b/iOS/Settings/NotificationsTableViewCell.swift @@ -49,20 +49,6 @@ class NotificationsTableViewCell: UITableViewCell { notificationsImageView.layer.cornerRadius = 4 } - - /// Used for notification permissions only. - /// - Parameter status: `UNAuthorizationStatus` - func configure(_ status: UNAuthorizationStatus) { - notificationsSwitch.isOn = (status == .authorized || status == .provisional) ? true : false - if status == .denied || status == .authorized || status == .provisional { notificationsSwitch.isEnabled = false } - if status == .notDetermined { - notificationsSwitch.addTarget(self, action: #selector(requestNotificationPermissions(_:)), for: .touchUpInside) - } - notificationsLabel.text = NSLocalizedString("Enable Notifications", comment: "") - notificationsImageView.image = UIImage(systemName: "app.badge") - notificationsImageView.layer.cornerRadius = 4 - } - @objc private func toggleWebFeedNotification(_ sender: Any) { guard let feed = feed else {