From 93209bd3fbdf88af80b8c665f5036df903781899 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Wed, 29 Apr 2020 09:23:48 +0100 Subject: [PATCH] remove debug stuff --- src/image.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/image.rs b/src/image.rs index 09343ec..dce465f 100644 --- a/src/image.rs +++ b/src/image.rs @@ -6,7 +6,6 @@ pub struct Image { impl From for Image { #[inline] fn from(string: String) -> Image { - print!("image: \n{}", string); let string = string.replace("NaN", "0"); let string = string.trim(); let lines: Vec<&str> = string.lines().collect(); @@ -15,9 +14,7 @@ impl From for Image { for line in lines { let line = &line[..dimension]; - println!("line: {}", line); for char in line.chars().into_iter() { - println!("Char: {} value: {}", char, match char {'1' => 1, _ => 0}); pixels.push(match char {'1' => 1, _ => 0}); } } @@ -47,7 +44,6 @@ impl ToString for Image { #[inline] pub(crate) fn animation_frames_from_string(string: String) -> Vec { - print!("animation frames: \n{}", string); let frames: Vec<&str> = string.split(">").collect(); frames.iter().map(|&frame| Image::from(frame.to_string())).collect()