mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-25 19:01:41 +01:00
removed unused key tuple
This commit is contained in:
@@ -55,7 +55,7 @@ public protocol ImportableUniqueObject: ImportableObject {
|
|||||||
|
|
||||||
var uniqueIDValue: UniqueIDType { get set }
|
var uniqueIDValue: UniqueIDType { get set }
|
||||||
|
|
||||||
static func uniqueIDFromImportSource(source: ImportSource) throws -> (key: String, value: UniqueIDType!)
|
static func uniqueIDFromImportSource(source: ImportSource) throws -> UniqueIDType
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -149,8 +149,7 @@ public extension BaseDataTransaction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let uniqueIDKeyPath = T.uniqueIDKeyPath
|
let uniqueIDKeyPath = T.uniqueIDKeyPath
|
||||||
let uniqueIDFromImportSource = try T.uniqueIDFromImportSource(source)
|
let uniqueIDValue = try T.uniqueIDFromImportSource(source)
|
||||||
let uniqueIDValue = uniqueIDFromImportSource.value
|
|
||||||
|
|
||||||
if let object = self.fetchOne(From(T), Where(uniqueIDKeyPath, isEqualTo: uniqueIDValue)) {
|
if let object = self.fetchOne(From(T), Where(uniqueIDKeyPath, isEqualTo: uniqueIDValue)) {
|
||||||
|
|
||||||
@@ -189,7 +188,7 @@ public extension BaseDataTransaction {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
let uniqueIDValue = try T.uniqueIDFromImportSource(source).value
|
let uniqueIDValue = try T.uniqueIDFromImportSource(source)
|
||||||
mapping[uniqueIDValue] = source
|
mapping[uniqueIDValue] = source
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -247,7 +246,7 @@ public extension BaseDataTransaction {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
let uniqueIDValue = try T.uniqueIDFromImportSource(source).value
|
let uniqueIDValue = try T.uniqueIDFromImportSource(source)
|
||||||
mapping[uniqueIDValue] = source
|
mapping[uniqueIDValue] = source
|
||||||
sortedIDs.append(uniqueIDValue)
|
sortedIDs.append(uniqueIDValue)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user