From b49833f6f53de61245ae417d8d70f454d1736c0c Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Sun, 2 Jul 2023 23:12:26 +0200 Subject: [PATCH] day(23): remove unnecessary debug and empty lines Signed-off-by: Matej Focko --- src/bin/day23.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/bin/day23.rs b/src/bin/day23.rs index 0fb420b..bbe8c0e 100644 --- a/src/bin/day23.rs +++ b/src/bin/day23.rs @@ -80,17 +80,10 @@ fn propose_moves(i: usize, elves: &Input) -> BTreeMap { { let new_position = adjacent[0] + *elf; - // debug!( - // "{:?} proposes moving by {:?} to {:?}", - // elf, adjacent[0], new_position - // ); - if already_proposed.contains(&new_position) { // cannot move more than one elf to the position moves.remove(&new_position); - // debug!("{:?} would move to the same location ({:?} by {:?}) as other elf, canceling!", elf, new_position, adjacent[0]); - break; } @@ -184,13 +177,11 @@ impl Solution for Day23 { fn part_1(input: &Input) -> Output { let mut positions = input.clone(); - // debug!("== Initial State =="); // show_ground_with_dimensions(&positions, -3, 10, -2, 9); for i in 0..10 { round(i, &mut positions); - // debug!("== End of Round {} ==", i + 1); // show_ground_with_dimensions(&positions, -3, 10, -2, 9); }