From f8e36baa5d673beb42c8f366cf1ecec61aaefcf8 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 7 Nov 2024 19:41:59 +0100 Subject: [PATCH] nihav_flash: remove some dead code --- nihav-duck/src/lib.rs | 11 ----------- nihav-flash/src/codecs/flashsv.rs | 5 ++--- nihav-flash/src/codecs/flv263.rs | 5 ----- 3 files changed, 2 insertions(+), 19 deletions(-) diff --git a/nihav-duck/src/lib.rs b/nihav-duck/src/lib.rs index 76dfbf4..2a62381 100644 --- a/nihav-duck/src/lib.rs +++ b/nihav-duck/src/lib.rs @@ -2,17 +2,6 @@ extern crate nihav_core; extern crate nihav_codec_support; -#[allow(clippy::collapsible_if)] -#[allow(clippy::collapsible_else_if)] -#[allow(clippy::comparison_chain)] -#[allow(clippy::excessive_precision)] -#[allow(clippy::identity_op)] -#[allow(clippy::needless_late_init)] -#[allow(clippy::unreadable_literal)] -#[allow(clippy::upper_case_acronyms)] -#[allow(clippy::verbose_bit_mask)] -#[allow(clippy::manual_range_contains)] -#[allow(clippy::wrong_self_convention)] mod codecs; mod demuxers; diff --git a/nihav-flash/src/codecs/flashsv.rs b/nihav-flash/src/codecs/flashsv.rs index 9e577d1..195df10 100644 --- a/nihav-flash/src/codecs/flashsv.rs +++ b/nihav-flash/src/codecs/flashsv.rs @@ -9,7 +9,6 @@ struct FSVShuffler { keyframe: Option>, } -#[allow(dead_code)] impl FSVShuffler { fn new() -> Self { Self::default() } fn clear(&mut self) { @@ -35,9 +34,9 @@ impl FSVShuffler { fn get_key_frame(&mut self) -> Option> { self.keyframe.as_ref().cloned() } - fn get_last_frame(&mut self) -> Option> { + /*fn get_last_frame(&mut self) -> Option> { self.lastframe.as_ref().cloned() - } + }*/ } diff --git a/nihav-flash/src/codecs/flv263.rs b/nihav-flash/src/codecs/flv263.rs index 8655423..c4b55c4 100644 --- a/nihav-flash/src/codecs/flv263.rs +++ b/nihav-flash/src/codecs/flv263.rs @@ -9,13 +9,11 @@ use nihav_codec_support::codecs::h263::code::*; use nihav_codec_support::codecs::h263::decoder::*; use nihav_codec_support::codecs::h263::data::*; -#[allow(dead_code)] struct Tables { intra_mcbpc_cb: Codebook, inter_mcbpc_cb: Codebook, cbpy_cb: Codebook, rl_cb: Codebook, - aic_rl_cb: Codebook, mv_cb: Codebook, } @@ -276,8 +274,6 @@ impl SparkDecoder { let cbpy_cb = Codebook::new(&mut coderead, CodebookMode::MSB).unwrap(); let mut coderead = H263RLCodeReader::new(H263_RL_CODES); let rl_cb = Codebook::new(&mut coderead, CodebookMode::MSB).unwrap(); - let mut coderead = H263RLCodeReader::new(H263_RL_CODES_AIC); - let aic_rl_cb = Codebook::new(&mut coderead, CodebookMode::MSB).unwrap(); let mut coderead = H263ShortCodeReader::new(H263_MV); let mv_cb = Codebook::new(&mut coderead, CodebookMode::MSB).unwrap(); let tables = Tables { @@ -285,7 +281,6 @@ impl SparkDecoder { inter_mcbpc_cb, cbpy_cb, rl_cb, - aic_rl_cb, mv_cb, }; -- 2.39.5