From 3ac1ee16f377d31a0fb80c8dae28b6239ac4229e Mon Sep 17 00:00:00 2001 From: Terin Stock Date: Sun, 9 Mar 2025 17:47:56 +0100 Subject: [chore] remove vendor --- .../go-sqlite3/internal/alloc/alloc_other.go | 24 ---------------------- 1 file changed, 24 deletions(-) delete mode 100644 vendor/github.com/ncruces/go-sqlite3/internal/alloc/alloc_other.go (limited to 'vendor/github.com/ncruces/go-sqlite3/internal/alloc/alloc_other.go') diff --git a/vendor/github.com/ncruces/go-sqlite3/internal/alloc/alloc_other.go b/vendor/github.com/ncruces/go-sqlite3/internal/alloc/alloc_other.go deleted file mode 100644 index b420acc45..000000000 --- a/vendor/github.com/ncruces/go-sqlite3/internal/alloc/alloc_other.go +++ /dev/null @@ -1,24 +0,0 @@ -//go:build !unix && !windows - -package alloc - -import "github.com/tetratelabs/wazero/experimental" - -func NewMemory(cap, max uint64) experimental.LinearMemory { - return &sliceMemory{make([]byte, 0, cap)} -} - -type sliceMemory struct { - buf []byte -} - -func (b *sliceMemory) Free() {} - -func (b *sliceMemory) Reallocate(size uint64) []byte { - if cap := uint64(cap(b.buf)); size > cap { - b.buf = append(b.buf[:cap], make([]byte, size-cap)...) - } else { - b.buf = b.buf[:size] - } - return b.buf -} -- cgit v1.2.3