Remove unneeded changes

This commit is contained in:
Jackson Harper 2023-04-10 17:13:04 +08:00
parent 872c3d8d0b
commit 183160b796
2 changed files with 0 additions and 8 deletions

View file

@ -55,13 +55,6 @@ public final class DataService: ObservableObject {
backgroundContext.automaticallyMergesChangesFromParent = true
backgroundContext.mergePolicy = NSMergePolicy.mergeByPropertyObjectTrump
// NotificationCenter.default.addObserver(
// forName: Notification.Name.NSManagedObjectContextObjectsDidChange,
// object: backgroundContext, queue: OperationQueue.main
// ) { note in
// print("MERGE NOTIFICATION: ", note)
// }
if isFirstTimeRunningNewAppBuild() {
resetLocalStorage()
} else {

View file

@ -53,7 +53,6 @@ public extension DataService {
context.perform {
guard let highlight = Highlight.lookup(byID: highlightID, inContext: context) else { return }
print("LOOKED UP HIGHLIGHT: ", highlight, highlight.serverSyncStatus, highlight.serverSyncStatus)
if isSyncSuccess {
highlight.remove(inContext: context)