Put deleteNoSync as public

sync3
Laurent 5 months ago
parent 7ce71a4921
commit 47e0ea17aa
  1. 4
      LeStorage/SyncedCollection.swift

@ -290,11 +290,11 @@ public class SyncedCollection<T : SyncedStorable>: BaseCollection<T>, SomeSynced
} }
/// Deletes the instance in the collection without synchronization /// Deletes the instance in the collection without synchronization
func deleteNoSync(instance: T) { public func deleteNoSync(instance: T, cascading: Bool = false) {
defer { defer {
self.setChanged() self.setChanged()
} }
self.deleteItem(instance, shouldBeSynchronized: false) self.deleteItem(instance, shouldBeSynchronized: cascading)
} }
/// Deletes the instance in the collection without synchronization /// Deletes the instance in the collection without synchronization

Loading…
Cancel
Save