ソースを参照

Remove `count_ones` (#399)

Aaron Kutch 4 年 前
コミット
702146718f
1 ファイル変更0 行追加5 行削除
  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)
-        }
     };
 }