mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-29 08:42:51 +00:00
Remove calls to clearFeedMetadata, which has been removed.
This commit is contained in:
1 parent
b4534b3294
commit
2a10090618
4 files changed
-11
No files matched your search
@@ -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
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
-3
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user