Skip to content

Commit

Permalink
Remove clamp from impl Ord (rely on default impl)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacg committed Oct 27, 2023
1 parent 3ffc216 commit c864158
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1098,15 +1098,6 @@ macro_rules! system {
value: self.value.min(other.value),
}
}

#[inline(always)]
fn clamp(self, min: Self, max: Self) -> Self {
Quantity {
dimension: $crate::lib::marker::PhantomData,
units: $crate::lib::marker::PhantomData,
value: self.value.clamp(min.value, max.value),
}
}
}

autoconvert! {
Expand Down

0 comments on commit c864158

Please sign in to comment.