cleanup code

This commit is contained in:
2025-05-01 18:04:42 +00:00
parent a446bbd923
commit 2351faf2d7
3 changed files with 13 additions and 27 deletions

View File

@@ -71,12 +71,9 @@ type Wavefront struct { // since wavefronts store diag distance, they should nev
// NewWavefront: returns a new wavefront with size accomodating lo and hi (inclusive)
func NewWavefront(lo int, hi int) *Wavefront {
a := &Wavefront{}
a.lohi = PackWavefrontLoHi(lo, hi)
size := hi - lo
newData := make([]WavefrontValue, size+1)
a.data = newData
a.data = make([]WavefrontValue, size+1)
return a
}