diff --git a/crates/ec-vp9-syntax/src/header.rs b/crates/ec-vp9-syntax/src/header.rs index f24e3b23..31a0b5da 100644 --- a/crates/ec-vp9-syntax/src/header.rs +++ b/crates/ec-vp9-syntax/src/header.rs @@ -505,11 +505,6 @@ impl Vp9Parser { } } - /// The reference slots as they stand, after every frame parsed so far. - pub fn reference_slots(&self) -> &[ReferenceSlot; NUM_REF_FRAMES] { - &self.refs - } - /// Parse one frame's uncompressed header and apply its reference refresh. /// /// `frame` starts at the frame marker, i.e. it is one element of diff --git a/crates/ec-vp9-syntax/src/superframe.rs b/crates/ec-vp9-syntax/src/superframe.rs index bf5bac0e..afdb86d6 100644 --- a/crates/ec-vp9-syntax/src/superframe.rs +++ b/crates/ec-vp9-syntax/src/superframe.rs @@ -63,11 +63,6 @@ pub fn split(chunk: &[u8]) -> Result> { Ok(out) } -/// True if `chunk` carries a superframe index, i.e. holds more than one frame. -pub fn is_superframe(chunk: &[u8]) -> bool { - matches!(split(chunk), Ok(frames) if frames.len() > 1) -} - #[cfg(test)] mod tests { use super::*; diff --git a/crates/ec-vp9-syntax/tests/streams.rs b/crates/ec-vp9-syntax/tests/streams.rs index c26bbfd5..9295b7ac 100644 --- a/crates/ec-vp9-syntax/tests/streams.rs +++ b/crates/ec-vp9-syntax/tests/streams.rs @@ -195,9 +195,6 @@ fn altref_fixture_has_superframes_and_hidden_frames() { assert!(h.show_existing_frame); assert_eq!(h.frame_to_show_map_idx, 5); assert_eq!(h.uncompressed_header_size, 1); - let slot = parser.reference_slots()[5]; - assert!(slot.valid, "slot 5 was never refreshed by the fixture"); - assert_eq!((h.width, h.height), (slot.width, slot.height)); } /// Truncation, bit flips and random noise: an error, never a panic.