Skip to content

Commit 7021467

Browse files
authored
Remove count_ones (#399)
1 parent 6dd4eb7 commit 7021467

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/int/mod.rs

-5
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ pub trait Int:
9090
fn aborting_div(self, other: Self) -> Self;
9191
fn aborting_rem(self, other: Self) -> Self;
9292
fn leading_zeros(self) -> u32;
93-
fn count_ones(self) -> u32;
9493
}
9594

9695
fn unwrap<T>(t: Option<T>) -> T {
@@ -229,10 +228,6 @@ macro_rules! int_impl_common {
229228
fn leading_zeros(self) -> u32 {
230229
<Self>::leading_zeros(self)
231230
}
232-
233-
fn count_ones(self) -> u32 {
234-
<Self>::count_ones(self)
235-
}
236231
};
237232
}
238233

0 commit comments

Comments
 (0)