From: Baokun Lee Date: Mon, 20 Dec 2021 06:12:02 +0000 (+0800) Subject: cmd/go/internal/modfetch: remove unused FileRev struct X-Git-Tag: go1.19beta1~915 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=79e051ad33992cb50e689b0dff2c6fc6f8b4c94f;p=gostls13.git cmd/go/internal/modfetch: remove unused FileRev struct In CL 367756 we remove ReadFileRevs function, We simplified the implementation of the interface Repo. and the type FileRev is no longer used. Change-Id: Iec9e2f0d6bb227f4d0d0f565e897137dcf392a3a Reviewed-on: https://go-review.googlesource.com/c/go/+/373375 Trust: Lee Baokun Run-TryBot: Lee Baokun TryBot-Result: Gopher Robot Reviewed-by: Bryan Mills --- diff --git a/src/cmd/go/internal/modfetch/codehost/codehost.go b/src/cmd/go/internal/modfetch/codehost/codehost.go index 4a0e2241e5..d8d4392baa 100644 --- a/src/cmd/go/internal/modfetch/codehost/codehost.go +++ b/src/cmd/go/internal/modfetch/codehost/codehost.go @@ -83,13 +83,6 @@ type RevInfo struct { Tags []string // known tags for commit } -// A FileRev describes the result of reading a file at a given revision. -type FileRev struct { - Rev string // requested revision - Data []byte // file data - Err error // error if any; os.IsNotExist(Err)==true if rev exists but file does not exist in that rev -} - // UnknownRevisionError is an error equivalent to fs.ErrNotExist, but for a // revision rather than a file. type UnknownRevisionError struct {