From 0ea46e446aa078fdca6c50879f5c65c4801e1920 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Wed, 26 Jun 2024 23:21:46 -0700 Subject: [PATCH] Drop properties for image downloaders that are now .shared. --- iOS/AppDelegate.swift | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/iOS/AppDelegate.swift b/iOS/AppDelegate.swift index 5aa31a419..c1dd480ac 100644 --- a/iOS/AppDelegate.swift +++ b/iOS/AppDelegate.swift @@ -40,17 +40,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD nonisolated(unsafe) let log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "Application") var userNotificationManager: UserNotificationManager! - var faviconDownloader: FaviconDownloader! - var imageDownloader: ImageDownloader! - var authorAvatarDownloader: AuthorAvatarDownloader! - var feedIconDownloader: FeedIconDownloader! var extensionContainersFile: ExtensionContainersFile! var extensionFeedAddRequestFile: ExtensionFeedAddRequestFile! var unreadCount = 0 { didSet { if unreadCount != oldValue { - NotificationCenter.default.post(name: .appUnreadCountDidChange, object: self, userInfo: nil) + AppNotification.postAppUnreadCountDidChange(from: self, unreadCount: unreadCount) postUnreadCountDidChangeNotification() UNUserNotificationCenter.current().setBadgeCount(unreadCount) } @@ -262,8 +258,6 @@ private extension AppDelegate { try! FileManager.default.createDirectory(at: imagesFolderURL, withIntermediateDirectories: true, attributes: nil) imageDownloader = ImageDownloader(folder: String(imagesFolderPath)) - authorAvatarDownloader = AuthorAvatarDownloader(imageDownloader: imageDownloader) - let tempFolder = tempDir.absoluteString let tempFolderPath = tempFolder.suffix(from: tempFolder.index(tempFolder.startIndex, offsetBy: 7)) feedIconDownloader = FeedIconDownloader(imageDownloader: imageDownloader, folder: String(tempFolderPath))