]> git.nihav.org Git - nihav.git/commitdiff
nihav_flash: remove some dead code
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 7 Nov 2024 18:41:59 +0000 (19:41 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 9 Nov 2024 14:29:09 +0000 (15:29 +0100)
nihav-duck/src/lib.rs
nihav-flash/src/codecs/flashsv.rs
nihav-flash/src/codecs/flv263.rs

index 76dfbf47009a0d44a15276cc6273878d38d3d2d0..2a623816734add65439e5d7ac61999f1be87bf83 100644 (file)
@@ -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;
index 9e577d1499c5b1cfe8edb8af58fbb42ac57f10d8..195df105c4dd284eb1087d3b3ec58ec4b8c46b7b 100644 (file)
@@ -9,7 +9,6 @@ struct FSVShuffler {
     keyframe:  Option<NAVideoBufferRef<u8>>,
 }
 
-#[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<NAVideoBufferRef<u8>> {
         self.keyframe.as_ref().cloned()
     }
-    fn get_last_frame(&mut self) -> Option<NAVideoBufferRef<u8>> {
+    /*fn get_last_frame(&mut self) -> Option<NAVideoBufferRef<u8>> {
         self.lastframe.as_ref().cloned()
-    }
+    }*/
 }
 
 
index 865542305713663857ad65e26ab3fe20b2251d42..c4b55c4a24d1a4392cd0472304f40df1bc506879 100644 (file)
@@ -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<u8>,
     inter_mcbpc_cb: Codebook<u8>,
     cbpy_cb:        Codebook<u8>,
     rl_cb:          Codebook<H263RLSym>,
-    aic_rl_cb:      Codebook<H263RLSym>,
     mv_cb:          Codebook<u8>,
 }
 
@@ -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,
         };