]> Cypherpunks.ru repositories - goredo.git/blobdiff - dep.go
Move Hash-related code to separate file
[goredo.git] / dep.go
diff --git a/dep.go b/dep.go
index a1e45ae62c0d8cb013e1abe26ca5a7b47f375727..4d57c917b3e5fe75f360653030e754b4d081ba77 100644 (file)
--- a/dep.go
+++ b/dep.go
@@ -33,8 +33,6 @@ import (
        "lukechampine.com/blake3"
 )
 
-const HashLen = 32
-
 var (
        DirPrefix string
        DepCwd    string
@@ -44,12 +42,6 @@ var (
        HashCache       = make(map[string][]Hash)
 )
 
-type Hash string
-
-func (h Hash) String() string {
-       return hex.EncodeToString([]byte(h))
-}
-
 func recfileWrite(fdDep io.StringWriter, fields ...recfile.Field) error {
        w := recfile.NewWriter(fdDep)
        if _, err := w.RecordStart(); err != nil {