From d985f2802d65691ee18b23c261cb2b12b7e6146f Mon Sep 17 00:00:00 2001 From: Justin Wernick Date: Tue, 12 Dec 2023 18:39:41 +0200 Subject: Clean up unused code --- 2023/src/bin/day_12.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to '2023/src') diff --git a/2023/src/bin/day_12.rs b/2023/src/bin/day_12.rs index e29042a..e60b450 100644 --- a/2023/src/bin/day_12.rs +++ b/2023/src/bin/day_12.rs @@ -35,12 +35,6 @@ enum Spring { Unknown, } -#[derive(Debug, Clone)] -struct WorkingSpringRow<'a> { - springs: &'a [Spring], - check: &'a [u32], -} - impl SpringField { fn parser(input: &str) -> IResult<&str, Self> { map(separated_list1(line_ending, SpringRow::parser), SpringField)(input) @@ -87,7 +81,7 @@ impl SpringRow { fn possibilities_count(&self) -> usize { let optimized = self.optimize_tail(); - dbg!(optimized.possibilities_count_inner(0, 0, &mut BTreeMap::new())) + optimized.possibilities_count_inner(0, 0, &mut BTreeMap::new()) } fn optimize_tail(&self) -> SpringRow { -- cgit v1.2.3