Fix compile errors for Xcode 9 beta 5

This commit is contained in:
John Rommel Estropia
2017-08-08 08:02:05 +09:00
parent a52acf2ebd
commit f7aaf4fb2a
2 changed files with 1 additions and 10 deletions

View File

@@ -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))")

View File

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