diff --git a/pkg/custom_slice.go b/pkg/custom_slice.go index 5720372..c0b1530 100644 --- a/pkg/custom_slice.go +++ b/pkg/custom_slice.go @@ -41,15 +41,3 @@ func (a *PositiveSlice[T]) Set(idx int, value T) { a.data[actualIdx] = value a.valid[actualIdx] = true } - -func (a *PositiveSlice[T]) Preallocate(hi int) { - size := hi - - // expand data array to actualIdx - newData := make([]T, size+1) - a.data = newData - - // expand valid array to actualIdx - newValid := make([]bool, size+1) - a.valid = newValid -} diff --git a/pkg/types.go b/pkg/types.go index 5cd0ad0..d9e51a8 100644 --- a/pkg/types.go +++ b/pkg/types.go @@ -130,8 +130,6 @@ func NewWavefrontComponent() *WavefrontComponent { }, } - //w.W.Preallocate(preallocateSize) - return w }