From 4e30027e6838f9d1ab54bbbad2882a7d4d47192e Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Mon, 6 Feb 2023 16:23:38 +0200 Subject: [PATCH] Remove now unneeded migration from caches to application support --- ElementX/Sources/Other/Extensions/URL.swift | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ElementX/Sources/Other/Extensions/URL.swift b/ElementX/Sources/Other/Extensions/URL.swift index 35033fffb..9c5583840 100644 --- a/ElementX/Sources/Other/Extensions/URL.swift +++ b/ElementX/Sources/Other/Extensions/URL.swift @@ -35,14 +35,8 @@ extension URL { /// The base directory where all session data is stored. static var sessionsBaseDirectory: URL { - let cacheSessionsURL = cacheBaseDirectory.appendingPathComponent("Sessions", isDirectory: true) let applicationSupportSessionsURL = applicationSupportBaseDirectory.appendingPathComponent("Sessions", isDirectory: true) - #warning("Migration from caches to application support. Remove this in a couple of releases.") - if FileManager.default.directoryExists(at: cacheSessionsURL) { - try? FileManager.default.moveItem(at: cacheSessionsURL, to: applicationSupportSessionsURL) - } - try? FileManager.default.createDirectoryIfNeeded(at: applicationSupportSessionsURL) return applicationSupportSessionsURL