Skip to content

Commit 755079f

Browse files
committed
remove decoding
1 parent e0e5cab commit 755079f

File tree

6 files changed

+0
-12
lines changed

6 files changed

+0
-12
lines changed

Sources/ParseCareKit/Models/PCKCarePlan.swift

-2
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,6 @@ public struct PCKCarePlan: PCKVersionable {
163163
decoded.objectId = carePlan.uuid.uuidString
164164
decoded.entityId = carePlan.id
165165
decoded.patient = PCKPatient(uuid: carePlan.patientUUID)
166-
decoded.previousVersions = carePlan.previousVersionUUIDs.map { Pointer<Self>(objectId: $0.uuidString) }
167-
decoded.nextVersions = carePlan.nextVersionUUIDs.map { Pointer<Self>(objectId: $0.uuidString) }
168166
if let acl = carePlan.acl {
169167
decoded.ACL = acl
170168
} else {

Sources/ParseCareKit/Models/PCKContact.swift

-2
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,6 @@ public struct PCKContact: PCKVersionable {
199199
decoded.objectId = contact.uuid.uuidString
200200
decoded.entityId = contact.id
201201
decoded.carePlan = PCKCarePlan(uuid: contact.carePlanUUID)
202-
decoded.previousVersions = contact.previousVersionUUIDs.map { Pointer<Self>(objectId: $0.uuidString) }
203-
decoded.nextVersions = contact.nextVersionUUIDs.map { Pointer<Self>(objectId: $0.uuidString) }
204202
if let acl = contact.acl {
205203
decoded.ACL = acl
206204
} else {

Sources/ParseCareKit/Models/PCKHealthKitTask.swift

-2
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,6 @@ public struct PCKHealthKitTask: PCKVersionable {
183183
decoded.objectId = task.uuid.uuidString
184184
decoded.entityId = task.id
185185
decoded.carePlan = PCKCarePlan(uuid: task.carePlanUUID)
186-
decoded.previousVersions = task.previousVersionUUIDs.map { Pointer<Self>(objectId: $0.uuidString) }
187-
decoded.nextVersions = task.nextVersionUUIDs.map { Pointer<Self>(objectId: $0.uuidString) }
188186
if let acl = task.acl {
189187
decoded.ACL = acl
190188
} else {

Sources/ParseCareKit/Models/PCKOutcome.swift

-2
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,6 @@ public struct PCKOutcome: PCKVersionable {
180180
decoded.objectId = outcome.uuid.uuidString
181181
decoded.entityId = outcome.id
182182
decoded.task = PCKTask(uuid: outcome.taskUUID)
183-
decoded.previousVersions = outcome.previousVersionUUIDs.map { Pointer<Self>(objectId: $0.uuidString) }
184-
decoded.nextVersions = outcome.nextVersionUUIDs.map { Pointer<Self>(objectId: $0.uuidString) }
185183
if let acl = outcome.acl {
186184
decoded.ACL = acl
187185
} else {

Sources/ParseCareKit/Models/PCKPatient.swift

-2
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,6 @@ public struct PCKPatient: PCKVersionable {
161161
var decoded = try PCKUtility.decoder().decode(PCKPatient.self, from: encoded)
162162
decoded.objectId = patient.uuid.uuidString
163163
decoded.entityId = patient.id
164-
decoded.previousVersions = patient.previousVersionUUIDs.map { Pointer<Self>(objectId: $0.uuidString) }
165-
decoded.nextVersions = patient.nextVersionUUIDs.map { Pointer<Self>(objectId: $0.uuidString) }
166164
if let acl = patient.acl {
167165
decoded.ACL = acl
168166
} else {

Sources/ParseCareKit/Models/PCKTask.swift

-2
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,6 @@ public struct PCKTask: PCKVersionable {
180180
decoded.objectId = task.uuid.uuidString
181181
decoded.entityId = task.id
182182
decoded.carePlan = PCKCarePlan(uuid: task.carePlanUUID)
183-
decoded.previousVersions = task.previousVersionUUIDs.map { Pointer<Self>(objectId: $0.uuidString) }
184-
decoded.nextVersions = task.nextVersionUUIDs.map { Pointer<Self>(objectId: $0.uuidString) }
185183
if let acl = task.acl {
186184
decoded.ACL = acl
187185
} else {

0 commit comments

Comments
 (0)