Day 13 Complete
Removed function that wasn't needed.
This commit is contained in:
parent
a42f628602
commit
3da997aec7
BIN
day13/day13
BIN
day13/day13
Binary file not shown.
@ -73,17 +73,6 @@ func (p *Path) Append(c Coord) {
|
|||||||
p.coords = append(p.coords, c)
|
p.coords = append(p.coords, c)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *Path) Pop() Coord {
|
|
||||||
var ret Coord
|
|
||||||
prePop := len(p.coords)
|
|
||||||
ret, p.coords = p.coords[len(p.coords)-1], p.coords[:len(p.coords)-1]
|
|
||||||
if len(p.coords) != prePop-1 {
|
|
||||||
fmt.Println("Error, popping didn't result in one less size")
|
|
||||||
os.Exit(1)
|
|
||||||
}
|
|
||||||
return ret
|
|
||||||
}
|
|
||||||
|
|
||||||
func (p *Path) ContainsCoord(x, y int) bool {
|
func (p *Path) ContainsCoord(x, y int) bool {
|
||||||
for i := range p.coords {
|
for i := range p.coords {
|
||||||
if p.coords[i].Is(x, y) {
|
if p.coords[i].Is(x, y) {
|
||||||
|
Loading…
Reference in New Issue
Block a user