about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-10-12T23·18+0200
committerclbot <clbot@tvl.fyi>2023-10-13T14·43+0000
commit64beaab16338518b016a151196b8305604ec0764 (patch)
tree128eb5f413203875453868c2d93f585eff20d2be
parent9b7629826f45af70ed2668353ff4d28446cd1417 (diff)
refactor(tvix/store/protos): remove unused mustBlobDigest function r/6795
Change-Id: I79a73de0cb06abcf16a6579ae298876004ab0ba8
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9719
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: Connor Brewster <cbrewster@hey.com>
-rw-r--r--tvix/store/protos/export_test.go10
1 files changed, 0 insertions, 10 deletions
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{