mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-16 05:56:50 +01:00
Fix compile errors for Xcode 9 beta 5
This commit is contained in:
@@ -1093,15 +1093,6 @@ fileprivate extension String {
|
||||
return String(repeating: " ", count: level * 4)
|
||||
}
|
||||
|
||||
fileprivate func trimSwiftModuleName() -> String {
|
||||
|
||||
if self.hasPrefix("Swift.") {
|
||||
|
||||
return self.substring(from: "Swift.".endIndex)
|
||||
}
|
||||
return self
|
||||
}
|
||||
|
||||
fileprivate mutating func indent(_ level: Int) {
|
||||
|
||||
self = self.replacingOccurrences(of: "\n", with: "\n\(String.indention(level))")
|
||||
|
||||
@@ -538,7 +538,7 @@ public final class CoreStoreSchema: DynamicSchema {
|
||||
}
|
||||
else {
|
||||
|
||||
let newMethod = class_getClassMethod(managedObjectClass, newSelector)
|
||||
let newMethod = class_getClassMethod(managedObjectClass, newSelector)!
|
||||
method_exchangeImplementations(origMethod, newMethod)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user