From c864158b001a9c753f45704e81687cfae22a6763 Mon Sep 17 00:00:00 2001 From: Jacek Generowicz Date: Fri, 23 Sep 2022 14:59:11 +0200 Subject: [PATCH] Remove clamp from impl Ord (rely on default impl) --- src/system.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/system.rs b/src/system.rs index b3fc10ff..3a4ab9b6 100644 --- a/src/system.rs +++ b/src/system.rs @@ -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! {