From f35e18cb0531e7d6a3544560746d592aa47ed555 Mon Sep 17 00:00:00 2001 From: Genny Date: Sun, 21 Nov 2021 18:21:21 -0600 Subject: Remove debug code --- src/reader/mod.rs | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/reader/mod.rs b/src/reader/mod.rs index 7cf1fe1..41494df 100644 --- a/src/reader/mod.rs +++ b/src/reader/mod.rs @@ -37,22 +37,7 @@ impl GifReader { loop { match Self::read_block(&mut reader)? { - Some(block) => { - /*match &block { - Block::IndexedImage(_) => println!("Indexed Image"), - Block::BlockedImage(_) => println!("Blocked Image"), - Block::Extension(ext) => match ext { - Extension::GraphicControl(_) => println!("Graphic Cotrol Extension"), - Extension::Looping(_) => println!("Netscape Extension"), - Extension::Comment(vec) => { - println!("Comment Extension {:X}", vec.len()) - } - Extension::Application(_) => todo!(), - }, - }*/ - - gif.blocks.push(block) - } + Some(block) => gif.blocks.push(block), None => return Ok(gif), } } @@ -162,7 +147,6 @@ impl GifReader { let lzw_csize = reader.u8().ok_or(DecodingError::UnexpectedEof)?; let compressed_data = reader.take_and_collapse_subblocks(); - println!("c{}", compressed_data.len()); let mut decompress = weezl::decode::Decoder::new(weezl::BitOrder::Lsb, lzw_csize); //TODO: remove unwrap -- cgit 1.4.1-3-g733a5