From 1984e2f590c26be42d88e6f8c8754add301edbc6 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:39:11 +0300 Subject: [PATCH] U21: remove make_decoder from ec-dvbsub, ec-pgs, ec-dvdsub; no edith or yumush caller (edith maps codecs to the decoder types directly) --- crates/ec-dvbsub/src/lib.rs | 4 ---- crates/ec-dvdsub/src/lib.rs | 4 ---- crates/ec-pgs/src/lib.rs | 4 ---- 3 files changed, 12 deletions(-) diff --git a/crates/ec-dvbsub/src/lib.rs b/crates/ec-dvbsub/src/lib.rs index cf713ddd..f314302c 100644 --- a/crates/ec-dvbsub/src/lib.rs +++ b/crates/ec-dvbsub/src/lib.rs @@ -610,10 +610,6 @@ impl Decoder for DvbSubDecoder { } } -/// A DVB subtitle decoder as the family's registry hands one out. -pub fn make_decoder(_params: &CodecParameters) -> Result> { - Ok(Box::new(DvbSubDecoder::new())) -} #[cfg(test)] mod tests { diff --git a/crates/ec-dvdsub/src/lib.rs b/crates/ec-dvdsub/src/lib.rs index 5f09bd71..677a1c3a 100644 --- a/crates/ec-dvdsub/src/lib.rs +++ b/crates/ec-dvdsub/src/lib.rs @@ -542,10 +542,6 @@ impl Decoder for DvdSubDecoder { } } -/// A DVD subpicture decoder as the family's registry hands one out. -pub fn make_decoder(params: &CodecParameters) -> Result> { - Ok(Box::new(DvdSubDecoder::new(params.extradata.as_deref()))) -} #[cfg(test)] mod tests { diff --git a/crates/ec-pgs/src/lib.rs b/crates/ec-pgs/src/lib.rs index 85c41b33..55880f33 100644 --- a/crates/ec-pgs/src/lib.rs +++ b/crates/ec-pgs/src/lib.rs @@ -519,10 +519,6 @@ impl Decoder for PgsDecoder { } } -/// A PGS decoder as the family's registry hands one out. -pub fn make_decoder(_params: &CodecParameters) -> Result> { - Ok(Box::new(PgsDecoder::new())) -} /// One palette entry: BT.601 Y'CbCr with straight alpha, the way a disc writes /// it, into RGBA.