Skip to content

Commit 2dbb580

Browse files
authored
build: remove unused functions (#32393)
1 parent e798e26 commit 2dbb580

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

build/ci.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,6 @@ func downloadSpecTestFixtures(csdb *download.ChecksumDB, cachedir string) string
343343
return filepath.Join(cachedir, base)
344344
}
345345

346-
// doCheckTidy assets that the Go modules files are tidied already.
347-
func doCheckTidy() {
348-
}
349-
350346
// doCheckGenerate ensures that re-generating generated files does not cause
351347
// any mutations in the source file tree.
352348
func doCheckGenerate() {

internal/build/file.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,6 @@ func FileExist(path string) bool {
3434
return true
3535
}
3636

37-
// HashFiles iterates the provided set of files, computing the hash of each.
38-
func HashFiles(files []string) (map[string][32]byte, error) {
39-
res := make(map[string][32]byte)
40-
for _, filePath := range files {
41-
f, err := os.OpenFile(filePath, os.O_RDONLY, 0666)
42-
if err != nil {
43-
return nil, err
44-
}
45-
hasher := sha256.New()
46-
if _, err := io.Copy(hasher, f); err != nil {
47-
return nil, err
48-
}
49-
res[filePath] = [32]byte(hasher.Sum(nil))
50-
}
51-
return res, nil
52-
}
53-
5437
// HashFolder iterates all files under the given directory, computing the hash
5538
// of each.
5639
func HashFolder(folder string, exlude []string) (map[string][32]byte, error) {

0 commit comments

Comments
 (0)