Deprecation of enum CoreStore, reorganize global symbols

This commit is contained in:
John Estropia
2019-08-29 17:03:09 +09:00
parent 02d5bf85ae
commit 266b1a9913
95 changed files with 2232 additions and 1837 deletions

View File

@@ -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()
}