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 6, 2024
1 parent 6867571 commit 143abd2
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions include/common/bitdepth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,18 +239,6 @@ pub trait BitDepth: Clone + Copy {
Self::Pixel::mut_slice_from(bytes).unwrap()
}

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()
}
Expand Down

0 comments on commit 143abd2

Please sign in to comment.