Remove debugging code that is probably throwing off the sync state

This commit is contained in:
Maurice Parker 2020-04-26 17:15:31 -05:00
parent b168cef88b
commit 60e5ea1946
1 changed files with 0 additions and 5 deletions

View File

@ -624,8 +624,6 @@ private extension CloudKitAccountDelegate {
group.notify(queue: DispatchQueue.main) { group.notify(queue: DispatchQueue.main) {
newAndUpdatedArticles = newAndUpdatedArticles.subtracting(deletedArticles)
self.articlesZone.deleteArticles(deletedArticles) { _ in self.articlesZone.deleteArticles(deletedArticles) { _ in
self.refreshProgress.completeTask() self.refreshProgress.completeTask()
self.saveNewArticles(newAndUpdatedArticles) { self.saveNewArticles(newAndUpdatedArticles) {
@ -697,8 +695,6 @@ private extension CloudKitAccountDelegate {
newAndUpdatedArticles.formUnion(articleChanges.updatedArticles ?? Set<Article>()) newAndUpdatedArticles.formUnion(articleChanges.updatedArticles ?? Set<Article>())
let deletedArticles = articleChanges.deletedArticles ?? Set<Article>() let deletedArticles = articleChanges.deletedArticles ?? Set<Article>()
newAndUpdatedArticles = newAndUpdatedArticles.subtracting(deletedArticles)
self.articlesZone.deleteArticles(deletedArticles) { _ in self.articlesZone.deleteArticles(deletedArticles) { _ in
self.refreshProgress.completeTask() self.refreshProgress.completeTask()
self.articlesZone.saveNewArticles(newAndUpdatedArticles) { _ in self.articlesZone.saveNewArticles(newAndUpdatedArticles) { _ in
@ -781,7 +777,6 @@ private extension CloudKitAccountDelegate {
var newAndUpdatedArticles = articleChanges.newArticles ?? Set<Article>() var newAndUpdatedArticles = articleChanges.newArticles ?? Set<Article>()
newAndUpdatedArticles.formUnion(articleChanges.updatedArticles ?? Set<Article>()) newAndUpdatedArticles.formUnion(articleChanges.updatedArticles ?? Set<Article>())
let deletedArticles = articleChanges.deletedArticles ?? Set<Article>() let deletedArticles = articleChanges.deletedArticles ?? Set<Article>()
newAndUpdatedArticles = newAndUpdatedArticles.subtracting(deletedArticles)
self.articlesZone.deleteArticles(deletedArticles) { _ in self.articlesZone.deleteArticles(deletedArticles) { _ in
self.refreshProgress.completeTask() self.refreshProgress.completeTask()