]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: delete unused function isInGoToolsRepo
authorMarvin Stenger <marvin.stenger94@gmail.com>
Thu, 21 Sep 2017 15:14:59 +0000 (17:14 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 27 Sep 2017 09:57:00 +0000 (09:57 +0000)
The function isInGoToolsRepo has no use case anymore, so we remove it
with this change.

Change-Id: I71051828eef2e317b83e13f83a14d5f0bc0ec13f
Reviewed-on: https://go-review.googlesource.com/66350
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/go/internal/base/tool.go

index c907772c00a51bc8404213ef7d127db86641d3b8..d0da65e03ced64a930867913843e534dd5701bd9 100644 (file)
@@ -36,18 +36,9 @@ func Tool(toolName string) string {
        }
        // Give a nice message if there is no tool with that name.
        if _, err := os.Stat(toolPath); err != nil {
-               if isInGoToolsRepo(toolName) {
-                       fmt.Fprintf(os.Stderr, "go tool: no such tool %q; to install:\n\tgo get golang.org/x/tools/cmd/%s\n", toolName, toolName)
-               } else {
-                       fmt.Fprintf(os.Stderr, "go tool: no such tool %q\n", toolName)
-               }
+               fmt.Fprintf(os.Stderr, "go tool: no such tool %q\n", toolName)
                SetExitStatus(2)
                Exit()
        }
        return toolPath
 }
-
-// TODO: Delete.
-func isInGoToolsRepo(toolName string) bool {
-       return false
-}