about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGenny <gen@nyble.dev>2021-11-21 18:21:21 -0600
committerGenny <gen@nyble.dev>2021-11-21 18:21:21 -0600
commitf35e18cb0531e7d6a3544560746d592aa47ed555 (patch)
treedad27908a54bab9cbd813d89235d7228dd64c7e9
parent41c60e38620ac68e32bcb977723e232ba12ecf4a (diff)
downloadgifed-f35e18cb0531e7d6a3544560746d592aa47ed555.tar.gz
gifed-f35e18cb0531e7d6a3544560746d592aa47ed555.zip
Remove debug code
-rw-r--r--src/reader/mod.rs18
1 files changed, 1 insertions, 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