From ab1c58ad9b212d25c3f993b5bf6504f575ab44f8 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Fri, 1 Mar 2019 13:32:59 -0500 Subject: [PATCH] Remove unused code in mandelbrot example --- mandelbrot/src/main.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/mandelbrot/src/main.rs b/mandelbrot/src/main.rs index 50958a0..eaa89fb 100644 --- a/mandelbrot/src/main.rs +++ b/mandelbrot/src/main.rs @@ -158,14 +158,6 @@ fn write_image(filename: &str, pixels: &[u8], bounds: (usize, usize)) Ok(()) } -#[allow(dead_code)] -fn complex_square_add_loop(c: Complex) { - let mut z = Complex { re: 0.0, im: 0.0 }; - loop { - z = z * z + c; - } -} - fn main() { let args: Vec = std::env::args().collect();