From 6921f5ee25f4980267b2d30220f72b6af0cc3fd3 Mon Sep 17 00:00:00 2001 From: Dimitri Bouniol Date: Wed, 5 Aug 2026 03:28:06 -0700 Subject: [PATCH] Removed unused `isTransactingExternally(to:)` method --- .../Disk Persistence/Transaction/Transaction.swift | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Sources/CodableDatastore/Persistence/Disk Persistence/Transaction/Transaction.swift b/Sources/CodableDatastore/Persistence/Disk Persistence/Transaction/Transaction.swift index 7ea84bc..bf39437 100644 --- a/Sources/CodableDatastore/Persistence/Disk Persistence/Transaction/Transaction.swift +++ b/Sources/CodableDatastore/Persistence/Disk Persistence/Transaction/Transaction.swift @@ -340,13 +340,6 @@ extension DiskPersistence { ) -> Self? { TransactionTaskLocals.transaction(for: persistence).map({ $0 as! Self }) } - - /// Check to see if we are in a transaction that pertains to a different persistence than the one provided. - /// - /// This is determined by checking if the only transactions present belong to other persistences. If there are no other transactions, or a transaction for the persistence is already registered, it has already been vetted and is no longer considered external. - nonisolated static func isTransactingExternally(to persistence: DiskPersistence) -> Bool { - !TransactionTaskLocals.transactionStorage.isEmpty && TransactionTaskLocals.transactionStorage[ObjectIdentifier(persistence)] == nil - } } }