From a3ff92ec18685980aa8216ac7ea81e37d35d24bc Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Wed, 26 Jun 2024 23:21:27 -0700 Subject: [PATCH] Delete code that is now in AppLocations. --- Mac/AppDelegate.swift | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Mac/AppDelegate.swift b/Mac/AppDelegate.swift index d809f0513..8afad4002 100644 --- a/Mac/AppDelegate.swift +++ b/Mac/AppDelegate.swift @@ -155,16 +155,6 @@ import Sparkle CacheCleaner.purgeIfNecessary() - // Try to establish a cache in the Caches folder, but if it fails for some reason fall back to a temporary dir - let cacheFolder: String - if let userCacheFolder = try? FileManager.default.url(for: .cachesDirectory, in: .userDomainMask, appropriateFor: nil, create: false).path { - cacheFolder = userCacheFolder - } - else { - let bundleIdentifier = (Bundle.main.infoDictionary!["CFBundleIdentifier"]! as! String) - cacheFolder = (NSTemporaryDirectory() as NSString).appendingPathComponent(bundleIdentifier) - } - FaviconDownloader.shared.delegate = self FeedIconDownloader.shared.delegate = self