From 5f4917b7e5471f8b67bd62d6e5ef00636f6c3770 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 15 May 2025 22:01:56 +0200 Subject: [PATCH] internal/download: remove Verify --- internal/download/download.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/internal/download/download.go b/internal/download/download.go index dc93c5a5ef..8c0c4d544f 100644 --- a/internal/download/download.go +++ b/internal/download/download.go @@ -127,16 +127,6 @@ func (db *ChecksumDB) Files() iter.Seq[string] { } } -// Verify checks whether the given file is valid according to the checksum database. -func (db *ChecksumDB) Verify(path string) error { - basename := filepath.Base(path) - hash := db.findHash(basename) - if hash == "" { - return fmt.Errorf("no known hash for file %q", basename) - } - return verifyHash(path, hash) -} - // VerifyAll downloads all files and checks that they match the checksum given in // the database. This task can be used to sanity-check new checksums. func (db *ChecksumDB) VerifyAll() {