Skip to content

Commit

Permalink
unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal committed Aug 13, 2021
1 parent 834a2ca commit 4f046c6
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -984,15 +984,6 @@ macro_rules! impl_fn_slice {
}

macro_rules! slice_range_impl {
( BitSlice, $ty:ty ) => {
impl<'a, O, T> Slice<$ty> for &'a BitSlice<O, T>
where
O: BitOrder,
T: BitStore,
{
impl_fn_slice!($ty);
}
};
( [ $for_type:ident ], $ty:ty ) => {
impl<'a, $for_type> Slice<$ty> for &'a [$for_type] {
impl_fn_slice!($ty);
Expand All @@ -1006,12 +997,6 @@ macro_rules! slice_range_impl {
}

macro_rules! slice_ranges_impl {
( BitSlice ) => {
slice_range_impl! {BitSlice, Range<usize>}
slice_range_impl! {BitSlice, RangeTo<usize>}
slice_range_impl! {BitSlice, RangeFrom<usize>}
slice_range_impl! {BitSlice, RangeFull}
};
( [ $for_type:ident ] ) => {
slice_range_impl! {[$for_type], Range<usize>}
slice_range_impl! {[$for_type], RangeTo<usize>}
Expand Down

0 comments on commit 4f046c6

Please sign in to comment.