         }
     }
     
-    func syncLocalNotesToRemote(remoteNotes: [AnyObject], completeHandler:@escaping (Bool) -> Void) {
-        let localNotes = getNotesFromCoreData()
-        for localNote in localNotes {
-            
-        }
-    }
+//    func syncLocalNotesToRemote(remoteNotes: [AnyObject], completeHandler:@escaping (Bool) -> Void) {
+//        let localNotes = getNotesFromCoreData()
+//        for localNote in localNotes {
+//            
+//        }
+//    }
     
     func getNotesFromCoreData() -> [NSManagedObject] {
         var unsortedNotes = [NSManagedObject]()

        var dictionary = [Int:NSManagedObject]()
        for note in notes {
            dictionary[(note.value(forKeyPath: "id") as? Int)!] = note
        }
        return dictionary
    }

        // Remove old notes from CoreData
        for case let updatedNote as [String:AnyObject] in newNotes {
            managedContext.delete(localNotesDictionary[(updatedNote["id"] as! Int)]!)
        }
        do {
            try managedContext.save()
        } catch let error as NSError {
            print("Error While Deleting Note: \(error.userInfo)")
        }
        // Save updated notes to CoreData
        addNotesToCoreData(notesArray: newNotes)
