]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/modfetch: remove unused FileRev struct
authorBaokun Lee <bk@golangcn.org>
Mon, 20 Dec 2021 06:12:02 +0000 (14:12 +0800)
committerLee Baokun <bk@golangcn.org>
Sun, 27 Mar 2022 06:12:30 +0000 (06:12 +0000)
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 <bk@golangcn.org>
Run-TryBot: Lee Baokun <bk@golangcn.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/cmd/go/internal/modfetch/codehost/codehost.go

index 4a0e2241e50ac828a92c5add57d174faa70ba6a9..d8d4392baaa39bf8df7ec35c5716ebfac100f3ac 100644 (file)
@@ -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 {