From 47e0ea17aad8f2b6022e8067f02fb48c4aac8829 Mon Sep 17 00:00:00 2001 From: Laurent Date: Tue, 17 Jun 2025 08:28:31 +0200 Subject: [PATCH] Put deleteNoSync as public --- LeStorage/SyncedCollection.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LeStorage/SyncedCollection.swift b/LeStorage/SyncedCollection.swift index 09b55f5..fc493d4 100644 --- a/LeStorage/SyncedCollection.swift +++ b/LeStorage/SyncedCollection.swift @@ -290,11 +290,11 @@ public class SyncedCollection: BaseCollection, SomeSynced } /// Deletes the instance in the collection without synchronization - func deleteNoSync(instance: T) { + public func deleteNoSync(instance: T, cascading: Bool = false) { defer { self.setChanged() } - self.deleteItem(instance, shouldBeSynchronized: false) + self.deleteItem(instance, shouldBeSynchronized: cascading) } /// Deletes the instance in the collection without synchronization