Skip to content

Commit

Permalink
Remove unused bitdepth casts
Browse files Browse the repository at this point in the history
  • Loading branch information
rinon committed Apr 22, 2024
1 parent 8d1771f commit e4c13ef
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions include/common/bitdepth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,22 +231,6 @@ pub trait BitDepth: Clone + Copy {

fn get_intermediate_bits(&self) -> u8;

fn _cast_coef_slice(bytes: &[u8]) -> &[Self::Coef] {
Self::Coef::slice_from(bytes).unwrap()
}

fn cast_coef_slice_mut(bytes: &mut [u8]) -> &mut [Self::Coef] {
Self::Coef::mut_slice_from(bytes).unwrap()
}

fn cast_coef(bytes: &[u8]) -> Self::Coef {
*Self::Coef::ref_from(bytes).unwrap()
}

fn cast_coef_mut(bytes: &mut [u8]) -> &mut Self::Coef {
Self::Coef::mut_from(bytes).unwrap()
}

const PREP_BIAS: i16;

unsafe fn select<T>(bd: &BitDepthUnion<T>) -> &T::T<Self>
Expand Down

0 comments on commit e4c13ef

Please sign in to comment.