diff --git a/Modules/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift b/Modules/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift index 6d343dd3d..6d845cb81 100644 --- a/Modules/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift +++ b/Modules/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift @@ -218,13 +218,11 @@ enum CloudKitAccountDelegateError: LocalizedError, Sendable { do { try await removeFeedFromCloud(for: account, with: feed, from: container) - account.clearFeedMetadata(feed) container.removeFeedFromTreeAtTopLevel(feed) } catch { switch error { case CloudKitZoneError.corruptAccount: // We got into a bad state and should remove the feed to clear up the bad data - account.clearFeedMetadata(feed) container.removeFeedFromTreeAtTopLevel(feed) default: throw error diff --git a/Modules/Account/Sources/Account/Feedbin/FeedbinAccountDelegate.swift b/Modules/Account/Sources/Account/Feedbin/FeedbinAccountDelegate.swift index e951fe91f..53a1d1b45 100644 --- a/Modules/Account/Sources/Account/Feedbin/FeedbinAccountDelegate.swift +++ b/Modules/Account/Sources/Account/Feedbin/FeedbinAccountDelegate.swift @@ -230,7 +230,6 @@ public enum FeedbinAccountDelegateError: String, Error, Sendable { if let subscriptionID = feed.externalID { do { try await caller.deleteSubscription(subscriptionID: subscriptionID) - account.clearFeedMetadata(feed) } catch { Self.logger.error("Feedbin: Remove feed error: \(error.localizedDescription)") } @@ -920,7 +919,6 @@ private extension FeedbinAccountDelegate { Self.logger.error("Feedbin: Unable to remove feed from Feedbin. Removing locally and continuing processing: \(error.localizedDescription)") } - account.clearFeedMetadata(feed) account.removeAllInstancesOfFeedFromTreeAtAllLevels(feed) } } diff --git a/Modules/Account/Sources/Account/NewsBlur/Internals/NewsBlurAccountDelegate+Internal.swift b/Modules/Account/Sources/Account/NewsBlur/Internals/NewsBlurAccountDelegate+Internal.swift index 8c694e7d6..532a47ec1 100644 --- a/Modules/Account/Sources/Account/NewsBlur/Internals/NewsBlurAccountDelegate+Internal.swift +++ b/Modules/Account/Sources/Account/NewsBlur/Internals/NewsBlurAccountDelegate+Internal.swift @@ -401,9 +401,6 @@ import os.log try await caller.deleteFeed(feedID: feedID, folder: folderName) account.removeAllInstancesOfFeedFromTreeAtAllLevels(feed) - if account.existingFeed(withFeedID: feed.feedID) != nil { - account.clearFeedMetadata(feed) - } } catch { throw AccountError.wrapped(error, account) } diff --git a/Modules/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift b/Modules/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift index a0a961ee0..b60292bfc 100644 --- a/Modules/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift +++ b/Modules/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift @@ -273,8 +273,6 @@ final class ReaderAPIAccountDelegate: AccountDelegate { do { try await caller.deleteSubscription(subscriptionID: subscriptionID) - account.clearFeedMetadata(feed) - refreshProgress.completeTask() } catch { @@ -368,7 +366,6 @@ final class ReaderAPIAccountDelegate: AccountDelegate { do { try await caller.deleteSubscription(subscriptionID: subscriptionID) - account.clearFeedMetadata(feed) account.removeAllInstancesOfFeedFromTreeAtAllLevels(feed) } catch { Self.logger.error("ReaderAPIAccountDelegate: removeFeed - error: \(error.localizedDescription)") @@ -613,7 +610,6 @@ private extension ReaderAPIAccountDelegate { for feed in account.topLevelFeeds { if !subFeedIds.contains(feed.feedID) { - account.clearFeedMetadata(feed) account.removeFeedFromTreeAtTopLevel(feed) } }