Remove count_ones (#399)

This commit is contained in:
Aaron Kutch 2021-01-04 09:17:44 -06:00 committed by GitHub
parent f0a9f9e3e1
commit e5b667554e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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