File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
src/cmd/go/internal/modload Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -111,19 +111,3 @@ func (*mvsReqs) Previous(m module.Version) (module.Version, error) {
111
111
}
112
112
return module.Version {Path : m .Path , Version : "none" }, nil
113
113
}
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
- }
You can’t perform that action at this time.
0 commit comments