From a1e992a6afe93c217e466b6a483421a7adf47232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Dec 2026 13:34:36 +0300 Subject: [PATCH] U11: ec-mp3 drop unused FrameHeader::main_data_len and same_stream (no callers in workspace, edith or yumush) --- crates/ec-mp3/src/header.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/crates/ec-mp3/src/header.rs b/crates/ec-mp3/src/header.rs index bb01e15c..4780da9b 100644 --- a/crates/ec-mp3/src/header.rs +++ b/crates/ec-mp3/src/header.rs @@ -247,24 +247,6 @@ impl FrameHeader { _ => 72 * bits / rate + pad, }) } - - /// Bytes of main data this frame carries: everything after the header, the - /// optional CRC and the side info. - pub fn main_data_len(&self) -> Option { - let len = self.frame_len()?; - let overhead = 4 + usize::from(self.crc) * 2 + self.side_info_len(); - Some(len.saturating_sub(overhead)) - } - - /// True when two headers describe the same stream configuration — the test - /// a resync uses to tell a real frame from a byte pattern that looked like - /// one. - pub fn same_stream(&self, other: &FrameHeader) -> bool { - self.version == other.version - && self.layer == other.layer - && self.sample_rate == other.sample_rate - && self.mode.channels() == other.mode.channels() - } } /// CRC-16 over a header and a run of protected *bits*, as Layers I and II