Skip to content

Commit

Permalink
Remove unused model properties
Browse files Browse the repository at this point in the history
  • Loading branch information
fpseverino committed Aug 20, 2024
1 parent 259979d commit 6684b88
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
9 changes: 0 additions & 9 deletions Sources/Orders/Models/OrderModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,6 @@ internal extension OrderModel {

return orderTypeIdentifier
}

var _$createdAt: Timestamp<DefaultTimestampFormat> {
guard let mirror = Mirror(reflecting: self).descendant("_createdAt"),
let createdAt = mirror as? Timestamp<DefaultTimestampFormat> else {
fatalError("createdAt property must be declared using @Timestamp(on: .create)")
}

return createdAt
}

var _$updatedAt: Timestamp<DefaultTimestampFormat> {
guard let mirror = Mirror(reflecting: self).descendant("_updatedAt"),
Expand Down
9 changes: 0 additions & 9 deletions Sources/PassKit/Models/DeviceModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,6 @@ public protocol DeviceModel: Model where IDValue == Int {
}

package extension DeviceModel {
var _$id: ID<Int> {
guard let mirror = Mirror(reflecting: self).descendant("_id"),
let id = mirror as? ID<Int> else {
fatalError("id property must be declared using @ID")
}

return id
}

var _$pushToken: Field<String> {
guard let mirror = Mirror(reflecting: self).descendant("_pushToken"),
let pushToken = mirror as? Field<String> else {
Expand Down

0 comments on commit 6684b88

Please sign in to comment.