From: Marvin Stenger Date: Thu, 21 Sep 2017 15:14:59 +0000 (+0200) Subject: cmd/go: delete unused function isInGoToolsRepo X-Git-Tag: go1.10beta1~966 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=07c9dc69ccf404a5d940fa944ddeccab4eee3b86;p=gostls13.git cmd/go: delete unused function isInGoToolsRepo 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í Run-TryBot: Daniel Martí TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/go/internal/base/tool.go b/src/cmd/go/internal/base/tool.go index c907772c00..d0da65e03c 100644 --- a/src/cmd/go/internal/base/tool.go +++ b/src/cmd/go/internal/base/tool.go @@ -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 -}