Skip to content

Commit 7d02a6e

Browse files
committed
chore: remove unused FSToTar
1 parent 7673cf5 commit 7d02a6e

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

internal/testutil/gzip.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,6 @@ func DecompressSparseGzip(t *testing.T, src, dst string) {
7878
}
7979
}
8080

81-
// FSToTar creates an in-memory tar archive from an fs.FS.
82-
// prefix is prepended to every file path inside the archive.
83-
func FSToTar(t *testing.T, fsys fs.FS, prefix string) []byte {
84-
t.Helper()
85-
var buf bytes.Buffer
86-
tw := tar.NewWriter(&buf)
87-
require.NoError(t, writeFSToTar(tw, fsys, prefix))
88-
require.NoError(t, tw.Close())
89-
return buf.Bytes()
90-
}
91-
9281
// FSToTarGz creates an in-memory tar.gz archive from an fs.FS.
9382
// prefix is prepended to every file path inside the archive.
9483
func FSToTarGz(t *testing.T, fsys fs.FS, prefix string) []byte {

0 commit comments

Comments
 (0)