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++ }