From 8bf3f603d549c172c7e731aaa5aad903bfb0fd99 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Fri, 6 Dec 2024 20:31:38 +0000 Subject: [PATCH] remove {graph}.obstacles --- day-06/internal/two/graph.go | 1 - day-06/internal/two/util.go | 7 ------- 2 files changed, 8 deletions(-) diff --git a/day-06/internal/two/graph.go b/day-06/internal/two/graph.go index 727afb3..e02bbcc 100644 --- a/day-06/internal/two/graph.go +++ b/day-06/internal/two/graph.go @@ -9,7 +9,6 @@ import ( type graph struct { data []string startPoint point - obstacles []point } func newGraph() *graph { diff --git a/day-06/internal/two/util.go b/day-06/internal/two/util.go index 3d9e240..cf3ab89 100644 --- a/day-06/internal/two/util.go +++ b/day-06/internal/two/util.go @@ -18,13 +18,6 @@ func parseLines(r io.Reader) (*graph, error) { graph.startPoint = point{indx, count, N} } graph.data = append(graph.data, scanner.Text()) - - for i, r := range line { - if r == '#' { - graph.obstacles = append(graph.obstacles, point{i, count, obstacle}) - } - } - count++ }