From 64beaab16338518b016a151196b8305604ec0764 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Fri, 13 Oct 2023 01:18:13 +0200 Subject: refactor(tvix/store/protos): remove unused mustBlobDigest function Change-Id: I79a73de0cb06abcf16a6579ae298876004ab0ba8 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9719 Tested-by: BuildkiteCI Autosubmit: flokli Reviewed-by: Connor Brewster --- tvix/store/protos/export_test.go | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'tvix/store') diff --git a/tvix/store/protos/export_test.go b/tvix/store/protos/export_test.go index 9b1901758f83..6c33bdc90117 100644 --- a/tvix/store/protos/export_test.go +++ b/tvix/store/protos/export_test.go @@ -9,7 +9,6 @@ import ( castorev1pb "code.tvl.fyi/tvix/castore/protos" storev1pb "code.tvl.fyi/tvix/store/protos" "github.com/stretchr/testify/require" - "lukechampine.com/blake3" ) func mustDirectoryDigest(d *castorev1pb.Directory) []byte { @@ -20,15 +19,6 @@ func mustDirectoryDigest(d *castorev1pb.Directory) []byte { return dgst } -func mustBlobDigest(r io.Reader) []byte { - hasher := blake3.New(32, nil) - _, err := io.Copy(hasher, r) - if err != nil { - panic(err) - } - return hasher.Sum([]byte{}) -} - func TestSymlink(t *testing.T) { node := &castorev1pb.Node{ Node: &castorev1pb.Node_Symlink{ -- cgit 1.4.1