Remove clear.

This commit is contained in:
Nuno Cruces
2024-03-15 14:13:00 +00:00
parent 846b95d2d4
commit f2f698b78a
2 changed files with 0 additions and 19 deletions

View File

@@ -1,9 +0,0 @@
//go:build !go1.21
package vfs
func clear(b []byte) {
for i := range b {
b[i] = 0
}
}

View File

@@ -1,10 +0,0 @@
//go:build !go1.21
package memdb
func clear[T any](b []T) {
var zero T
for i := range b {
b[i] = zero
}
}