From 16178b5f04cb56c2e5e49fdda129cccdd6e12466 Mon Sep 17 00:00:00 2001 From: Stefan Forstenlechner Date: Sun, 12 Dec 2021 13:05:57 +0100 Subject: [PATCH] Day 12 Remove unused import --- Day12.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Day12.cs b/Day12.cs index ce7a158..6ebe4b8 100644 --- a/Day12.cs +++ b/Day12.cs @@ -1,7 +1,6 @@ #define Day12 #if Day12 using System.Collections.Immutable; -using System.Diagnostics; using AoC2021; const string START = "start"; const string END = "end"; @@ -37,8 +36,7 @@ long PathCountPart1(Dictionary> paths, Immutabl foreach (var a in adjacent) { if (a.ToLower() == a) { count += PathCountPart1(paths, visitedSmallCaves.Add(a), a); - } - else { + } else { count += PathCountPart1(paths, visitedSmallCaves, a); } } @@ -58,8 +56,7 @@ long PathCountPart2(Dictionary> paths, Immutabl foreach (var a in adjacent) { if (a.ToLower() == a) { count += PathCountPart2(paths, visitedSmallCaves.Add(a), a, twice || visitedSmallCaves.Contains(a)); - } - else { + } else { count += PathCountPart2(paths, visitedSmallCaves, a, twice); } }