瀏覽代碼

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)
-        }
     };
 }