mirror of
https://github.com/golang/go
synced 2024-11-18 16:14:46 -07:00
cmd/go/internal/get: remove unused pkgImportPath
We can also remove the internal/load import as a result. Found with honnef.co/go/tools/cmd/unused. Change-Id: Ie70c5713e7a6f238158804acec07807c14f8e092 Reviewed-on: https://go-review.googlesource.com/41473 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
3fd976deca
commit
8fcd69d330
@ -5,7 +5,6 @@
|
||||
package get
|
||||
|
||||
import (
|
||||
"cmd/go/internal/load"
|
||||
"cmd/go/internal/str"
|
||||
"reflect"
|
||||
"strings"
|
||||
@ -82,11 +81,3 @@ func TestParseMetaGoImports(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func pkgImportPath(path string) *load.Package {
|
||||
return &load.Package{
|
||||
PackagePublic: load.PackagePublic{
|
||||
ImportPath: path,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user