From 60e5ea19463285d075bd97dc9c26fade85978763 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sun, 26 Apr 2020 17:15:31 -0500 Subject: [PATCH] Remove debugging code that is probably throwing off the sync state --- Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift b/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift index c7cd0f13c..6b304c1a4 100644 --- a/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift +++ b/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift @@ -624,8 +624,6 @@ private extension CloudKitAccountDelegate { group.notify(queue: DispatchQueue.main) { - newAndUpdatedArticles = newAndUpdatedArticles.subtracting(deletedArticles) - self.articlesZone.deleteArticles(deletedArticles) { _ in self.refreshProgress.completeTask() self.saveNewArticles(newAndUpdatedArticles) { @@ -697,8 +695,6 @@ private extension CloudKitAccountDelegate { newAndUpdatedArticles.formUnion(articleChanges.updatedArticles ?? Set
()) let deletedArticles = articleChanges.deletedArticles ?? Set
() - newAndUpdatedArticles = newAndUpdatedArticles.subtracting(deletedArticles) - self.articlesZone.deleteArticles(deletedArticles) { _ in self.refreshProgress.completeTask() self.articlesZone.saveNewArticles(newAndUpdatedArticles) { _ in @@ -781,7 +777,6 @@ private extension CloudKitAccountDelegate { var newAndUpdatedArticles = articleChanges.newArticles ?? Set
() newAndUpdatedArticles.formUnion(articleChanges.updatedArticles ?? Set
()) let deletedArticles = articleChanges.deletedArticles ?? Set
() - newAndUpdatedArticles = newAndUpdatedArticles.subtracting(deletedArticles) self.articlesZone.deleteArticles(deletedArticles) { _ in self.refreshProgress.completeTask()