Day 13 Complete

Removed function that wasn't needed.
This commit is contained in:
Brian Buller 2016-12-13 11:31:56 -06:00
parent a42f628602
commit 3da997aec7
2 changed files with 0 additions and 11 deletions

Binary file not shown.

View File

@ -73,17 +73,6 @@ func (p *Path) Append(c Coord) {
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 {
for i := range p.coords {
if p.coords[i].Is(x, y) {