remove {graph}.obstacles

This commit is contained in:
onyx-and-iris 2024-12-06 20:31:38 +00:00
parent df605fba15
commit 8bf3f603d5
2 changed files with 0 additions and 8 deletions

View File

@ -9,7 +9,6 @@ import (
type graph struct {
data []string
startPoint point
obstacles []point
}
func newGraph() *graph {

View File

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