Skip to content

Commit ba76567

Browse files
author
Bryan C. Mills
committed
cmd/go/internal/modload: delete unused *mvsReqs.next method
For #36460 Updates #36465 Change-Id: Id818dce21d39a48cf5fc9c015b30497dce9cd1ef Reviewed-on: https://go-review.googlesource.com/c/go/+/278596 Trust: Bryan C. Mills <[email protected]> Run-TryBot: Bryan C. Mills <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Jay Conrod <[email protected]> Reviewed-by: Michael Matloob <[email protected]>
1 parent 665def2 commit ba76567

File tree

1 file changed

+0
-16
lines changed
  • src/cmd/go/internal/modload

1 file changed

+0
-16
lines changed

src/cmd/go/internal/modload/mvs.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -111,19 +111,3 @@ func (*mvsReqs) Previous(m module.Version) (module.Version, error) {
111111
}
112112
return module.Version{Path: m.Path, Version: "none"}, nil
113113
}
114-
115-
// next returns the next version of m.Path after m.Version.
116-
// It is only used by the exclusion processing in the Required method,
117-
// not called directly by MVS.
118-
func (*mvsReqs) next(m module.Version) (module.Version, error) {
119-
// TODO(golang.org/issue/38714): thread tracing context through MVS.
120-
list, err := versions(context.TODO(), m.Path, CheckAllowed)
121-
if err != nil {
122-
return module.Version{}, err
123-
}
124-
i := sort.Search(len(list), func(i int) bool { return semver.Compare(list[i], m.Version) > 0 })
125-
if i < len(list) {
126-
return module.Version{Path: m.Path, Version: list[i]}, nil
127-
}
128-
return module.Version{Path: m.Path, Version: "none"}, nil
129-
}

0 commit comments

Comments
 (0)