Skip to content

Commit c2f7c9b

Browse files
committed
2024.06 Remove unused variables
1 parent ddd4d11 commit c2f7c9b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

2024/6-guard/main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
const (
1111
freeBlock = '.'
1212
obstacleBlock = '#'
13-
visiteBlock = 'X'
1413
)
1514

1615
var direction = []int{-1, 0, 1, 0}
@@ -30,7 +29,6 @@ func main() {
3029
guardIndex = strings.Index(row, "^")
3130
if guardIndex > -1 {
3231
guardStart = position{guardIndex, len(grid)}
33-
row = strings.Replace(row, "^", "X", 1)
3432
}
3533

3634
grid = append(grid, []byte(row))

0 commit comments

Comments
 (0)