Skip to content

Commit

Permalink
remove redundant functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ItachiEU committed Sep 10, 2024
1 parent 10d0066 commit 363f2c3
Showing 1 changed file with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,28 +64,6 @@ public struct LocalQuantitySample: Hashable, Encodable {
)
}

public static func == (lhs: LocalQuantitySample, rhs: LocalQuantitySample) -> Bool {
lhs.value == rhs.value &&
lhs.startDate == rhs.startDate &&
lhs.endDate == rhs.endDate &&
lhs.sourceBundle == rhs.sourceBundle &&
lhs.productType == rhs.productType &&
lhs.type == rhs.type &&
lhs.unit == rhs.unit &&
lhs.metadata == lhs.metadata
}

public func hash(into hasher: inout Hasher) {
hasher.combine(value)
hasher.combine(startDate)
hasher.combine(endDate)
hasher.combine(sourceBundle)
hasher.combine(productType)
hasher.combine(type)
hasher.combine(unit)
hasher.combine(metadata)
}

public enum Unit: String, Encodable, CustomStringConvertible {
case kg
case centimeter
Expand Down

0 comments on commit 363f2c3

Please sign in to comment.