mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-05 22:37:45 +01:00
Remove debugging code that is probably throwing off the sync state
This commit is contained in:
parent
b168cef88b
commit
60e5ea1946
@ -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<Article>())
|
||||
let deletedArticles = articleChanges.deletedArticles ?? Set<Article>()
|
||||
|
||||
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<Article>()
|
||||
newAndUpdatedArticles.formUnion(articleChanges.updatedArticles ?? Set<Article>())
|
||||
let deletedArticles = articleChanges.deletedArticles ?? Set<Article>()
|
||||
newAndUpdatedArticles = newAndUpdatedArticles.subtracting(deletedArticles)
|
||||
|
||||
self.articlesZone.deleteArticles(deletedArticles) { _ in
|
||||
self.refreshProgress.completeTask()
|
||||
|
Loading…
Reference in New Issue
Block a user