diff --git a/src/regression.rs b/src/regression.rs index 4ddebfd..6b0fb4c 100644 --- a/src/regression.rs +++ b/src/regression.rs @@ -2093,28 +2093,6 @@ pub mod theil_sen { // See https://stats.stackexchange.com/a/96166 // for reference. let median = { - #[derive(Debug, Clone, Copy)] - struct CmpFirst(T, V); - impl PartialEq for CmpFirst { - #[inline] - fn eq(&self, other: &Self) -> bool { - self.0.eq(&other.0) - } - } - impl Eq for CmpFirst {} - impl PartialOrd for CmpFirst { - #[inline] - fn partial_cmp(&self, other: &Self) -> Option { - self.0.partial_cmp(&other.0) - } - } - impl Ord for CmpFirst { - #[inline] - fn cmp(&self, other: &Self) -> std::cmp::Ordering { - self.0.cmp(&other.0) - } - } - let mut values: Vec<_> = predictors.iter().zip(outcomes.iter()).collect(); match percentile::percentile_default_pivot_by( &mut values,