1
0
mirror of https://github.com/golang/go synced 2024-11-18 13:54:59 -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:
Damien Lespiau 2017-04-22 20:03:06 +01:00 committed by Brad Fitzpatrick
parent 3fd976deca
commit 8fcd69d330

View File

@ -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,
},
}
}