mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-20 16:44:08 +01:00
Deprecation of enum CoreStore, reorganize global symbols
This commit is contained in:
@@ -68,9 +68,9 @@ public final class UnsafeDataTransaction: BaseDataTransaction {
|
||||
*/
|
||||
public func rollback() {
|
||||
|
||||
CoreStore.assert(
|
||||
Internals.assert(
|
||||
self.supportsUndo,
|
||||
"Attempted to rollback a \(cs_typeName(self)) with Undo support disabled."
|
||||
"Attempted to rollback a \(Internals.typeName(self)) with Undo support disabled."
|
||||
)
|
||||
self.context.rollback()
|
||||
}
|
||||
@@ -80,9 +80,9 @@ public final class UnsafeDataTransaction: BaseDataTransaction {
|
||||
*/
|
||||
public func undo() {
|
||||
|
||||
CoreStore.assert(
|
||||
Internals.assert(
|
||||
self.supportsUndo,
|
||||
"Attempted to undo a \(cs_typeName(self)) with Undo support disabled."
|
||||
"Attempted to undo a \(Internals.typeName(self)) with Undo support disabled."
|
||||
)
|
||||
self.context.undo()
|
||||
}
|
||||
@@ -116,9 +116,9 @@ public final class UnsafeDataTransaction: BaseDataTransaction {
|
||||
*/
|
||||
public func redo() {
|
||||
|
||||
CoreStore.assert(
|
||||
Internals.assert(
|
||||
self.supportsUndo,
|
||||
"Attempted to redo a \(cs_typeName(self)) with Undo support disabled."
|
||||
"Attempted to redo a \(Internals.typeName(self)) with Undo support disabled."
|
||||
)
|
||||
self.context.redo()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user