Skip to content

Commit 1975526

Browse files
remove unused ConstantTimeEq for Ordering
1 parent ff01955 commit 1975526

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/lib.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -890,18 +890,6 @@ pub trait ConstantTimePartialOrd {
890890
fn ct_partial_cmp(&self, other: &Self) -> CtOption<Ordering>;
891891
}
892892

893-
impl ConstantTimeEq for Ordering {
894-
/// Use our `#[repr(i8)]` to get a `ct_eq()` implementation without relying on any `match`es.
895-
///
896-
/// This also means `CtOption<Ordering>` implements `ConstantTimeEq`.
897-
#[inline]
898-
fn ct_eq(&self, other: &Self) -> Choice {
899-
let a = *self as i8;
900-
let b = *other as i8;
901-
a.ct_eq(&b)
902-
}
903-
}
904-
905893
impl ConditionallySelectable for Ordering {
906894
/// Delegate to [`i8::conditional_select()`], since [`Ordering`] is `#[repr(i8)]`.
907895
#[inline]

0 commit comments

Comments
 (0)