Jelajahi Sumber

Remove `count_ones` (#399)

Aaron Kutch 4 tahun lalu
induk
melakukan
702146718f
1 mengubah file dengan 0 tambahan dan 5 penghapusan
  1. 0 5
      src/int/mod.rs

+ 0 - 5
src/int/mod.rs

@@ -90,7 +90,6 @@ pub trait Int:
     fn aborting_div(self, other: Self) -> Self;
     fn aborting_rem(self, other: Self) -> Self;
     fn leading_zeros(self) -> u32;
-    fn count_ones(self) -> u32;
 }
 
 fn unwrap<T>(t: Option<T>) -> T {
@@ -229,10 +228,6 @@ macro_rules! int_impl_common {
         fn leading_zeros(self) -> u32 {
             <Self>::leading_zeros(self)
         }
-
-        fn count_ones(self) -> u32 {
-            <Self>::count_ones(self)
-        }
     };
 }