FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
fix(av1): drop the duplicate strictly_increasing and its test (#3321)
Dylan M. Taylor8fcf1d5f1eeb
diff --git a/crates/av1/src/header.rs b/crates/av1/src/header.rsindex b6e6f7a1a..c4e5f8a16 100644--- a/crates/av1/src/header.rs+++ b/crates/av1/src/header.rs@@ -1322,23 +1322,6 @@ impl FrameHeader {}}-fn strictly_increasing(values: &[u8]) -> bool {- values.windows(2).all(|pair| pair[0] < pair[1])-}--#[cfg(test)]-mod tests {- use super::strictly_increasing;-- #[test]- fn film_grain_scaling_points_must_increase() {- assert!(strictly_increasing(&[]));- assert!(strictly_increasing(&[0, 127, 255]));- assert!(!strictly_increasing(&[12, 12]));- assert!(!strictly_increasing(&[12, 11]));- }-}-pub(crate) fn default_gm_params() -> [[i32; 6]; 8] {let mut p = [[0i32; 6]; 8];for row in p.iter_mut() {