Skip to content

Commit

Permalink
fix: delete commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
prestwich committed Oct 3, 2023
1 parent 4405088 commit 95dc182
Showing 1 changed file with 0 additions and 112 deletions.
112 changes: 0 additions & 112 deletions src/bits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -548,118 +548,6 @@ impl_bit_op!(BitOr, bitor, BitOrAssign, bitor_assign);
impl_bit_op!(BitAnd, bitand, BitAndAssign, bitand_assign);
impl_bit_op!(BitXor, bitxor, BitXorAssign, bitxor_assign);

// impl<const BITS: usize, const LIMBS: usize> ShlAssign<usize> for Uint<BITS,
// LIMBS> { #[allow(clippy::inline_always)]
// #[inline(always)]
// fn shl_assign(&mut self, rhs: usize) {
// *self = self.wrapping_shl(rhs);
// }
// }

// impl<const BITS: usize, const LIMBS: usize> ShlAssign<&usize> for Uint<BITS,
// LIMBS> { #[allow(clippy::inline_always)]
// #[inline(always)]
// fn shl_assign(&mut self, rhs: &usize) {
// *self = self.wrapping_shl(*rhs);
// }
// }

// impl<const BITS: usize, const LIMBS: usize> Shl<usize> for Uint<BITS, LIMBS>
// { type Output = Self;

// #[allow(clippy::inline_always)]
// #[inline(always)]
// fn shl(self, rhs: usize) -> Self {
// self.wrapping_shl(rhs)
// }
// }

// impl<const BITS: usize, const LIMBS: usize> Shl<usize> for &Uint<BITS, LIMBS>
// { type Output = Uint<BITS, LIMBS>;

// #[allow(clippy::inline_always)]
// #[inline(always)]
// fn shl(self, rhs: usize) -> Self::Output {
// self.wrapping_shl(rhs)
// }
// }

// impl<const BITS: usize, const LIMBS: usize> Shl<&usize> for Uint<BITS, LIMBS>
// { type Output = Self;

// #[allow(clippy::inline_always)]
// #[inline(always)]
// fn shl(self, rhs: &usize) -> Self {
// self.wrapping_shl(*rhs)
// }
// }

// impl<const BITS: usize, const LIMBS: usize> Shl<&usize> for &Uint<BITS,
// LIMBS> { type Output = Uint<BITS, LIMBS>;

// #[allow(clippy::inline_always)]
// #[inline(always)]
// fn shl(self, rhs: &usize) -> Self::Output {
// self.wrapping_shl(*rhs)
// }
// }

// impl<const BITS: usize, const LIMBS: usize> ShrAssign<usize> for Uint<BITS,
// LIMBS> { #[allow(clippy::inline_always)]
// #[inline(always)]
// fn shr_assign(&mut self, rhs: usize) {
// *self = self.wrapping_shr(rhs);
// }
// }

// impl<const BITS: usize, const LIMBS: usize> ShrAssign<&usize> for Uint<BITS,
// LIMBS> { #[allow(clippy::inline_always)]
// #[inline(always)]
// fn shr_assign(&mut self, rhs: &usize) {
// *self = self.wrapping_shr(*rhs);
// }
// }

// impl<const BITS: usize, const LIMBS: usize> Shr<usize> for Uint<BITS, LIMBS>
// { type Output = Self;

// #[allow(clippy::inline_always)]
// #[inline(always)]
// fn shr(self, rhs: usize) -> Self {
// self.wrapping_shr(rhs)
// }
// }

// impl<const BITS: usize, const LIMBS: usize> Shr<usize> for &Uint<BITS, LIMBS>
// { type Output = Uint<BITS, LIMBS>;

// #[allow(clippy::inline_always)]
// #[inline(always)]
// fn shr(self, rhs: usize) -> Self::Output {
// self.wrapping_shr(rhs)
// }
// }

// impl<const BITS: usize, const LIMBS: usize> Shr<&usize> for Uint<BITS, LIMBS>
// { type Output = Self;

// #[allow(clippy::inline_always)]
// #[inline(always)]
// fn shr(self, rhs: &usize) -> Self {
// self.wrapping_shr(*rhs)
// }
// }

// impl<const BITS: usize, const LIMBS: usize> Shr<&usize> for &Uint<BITS,
// LIMBS> { type Output = Uint<BITS, LIMBS>;

// #[allow(clippy::inline_always)]
// #[inline(always)]
// fn shr(self, rhs: &usize) -> Self::Output {
// self.wrapping_shr(*rhs)
// }
// }

macro_rules! impl_shift {
(@main $u:ty) => {
impl<const BITS: usize, const LIMBS: usize> Shl<$u> for Uint<BITS, LIMBS> {
Expand Down

0 comments on commit 95dc182

Please sign in to comment.