From 6684b88a30a3779dccd69c775425f72365c33528 Mon Sep 17 00:00:00 2001 From: Francesco Paolo Severino Date: Tue, 20 Aug 2024 18:19:16 +0200 Subject: [PATCH] Remove unused model properties --- Sources/Orders/Models/OrderModel.swift | 9 --------- Sources/PassKit/Models/DeviceModel.swift | 9 --------- 2 files changed, 18 deletions(-) diff --git a/Sources/Orders/Models/OrderModel.swift b/Sources/Orders/Models/OrderModel.swift index 227e2ac..056307e 100644 --- a/Sources/Orders/Models/OrderModel.swift +++ b/Sources/Orders/Models/OrderModel.swift @@ -43,15 +43,6 @@ internal extension OrderModel { return orderTypeIdentifier } - - var _$createdAt: Timestamp { - guard let mirror = Mirror(reflecting: self).descendant("_createdAt"), - let createdAt = mirror as? Timestamp else { - fatalError("createdAt property must be declared using @Timestamp(on: .create)") - } - - return createdAt - } var _$updatedAt: Timestamp { guard let mirror = Mirror(reflecting: self).descendant("_updatedAt"), diff --git a/Sources/PassKit/Models/DeviceModel.swift b/Sources/PassKit/Models/DeviceModel.swift index 50f86e1..206a980 100644 --- a/Sources/PassKit/Models/DeviceModel.swift +++ b/Sources/PassKit/Models/DeviceModel.swift @@ -44,15 +44,6 @@ public protocol DeviceModel: Model where IDValue == Int { } package extension DeviceModel { - var _$id: ID { - guard let mirror = Mirror(reflecting: self).descendant("_id"), - let id = mirror as? ID else { - fatalError("id property must be declared using @ID") - } - - return id - } - var _$pushToken: Field { guard let mirror = Mirror(reflecting: self).descendant("_pushToken"), let pushToken = mirror as? Field else {