remove unused functions

This commit is contained in:
onyx-and-iris 2024-12-10 21:50:39 +00:00
parent 503082d822
commit fa02cb3bc7
2 changed files with 0 additions and 15 deletions

View File

@ -1,7 +1,6 @@
package one
import (
"slices"
"strings"
)
@ -30,11 +29,3 @@ func (g *graph) isOutOfBounds(p point) bool {
func (g *graph) valueAt(p point) rune {
return rune(g.data[p.y][p.x])
}
func (g *graph) debug(path []point) string {
temp := slices.Clone(g.data)
for _, pos := range path {
temp[pos.y] = replaceAtIndex(temp[pos.y], '+', pos.x)
}
return strings.Join(temp, "\n")
}

View File

@ -37,9 +37,3 @@ func parseLines(r io.Reader) (*graph, error) {
return graph, nil
}
func replaceAtIndex(s string, r rune, i int) string {
out := []rune(s)
out[i] = r
return string(out)
}