From a05c13206450322844dd67cdf2acac430338c7cd Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Tue, 9 Jul 2019 17:33:58 -0400 Subject: [PATCH] cmd/go/internal/modload: remove unused warnPattern function Change-Id: I6cf66870952d4c652912dd50a0b9af41bdc79dce Reviewed-on: https://go-review.googlesource.com/c/go/+/185346 Run-TryBot: Bryan C. Mills TryBot-Result: Gobot Gobot Reviewed-by: Emmanuel Odeke Reviewed-by: Jay Conrod --- src/cmd/go/internal/modload/load.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/cmd/go/internal/modload/load.go b/src/cmd/go/internal/modload/load.go index 1e9a1a3c35..992fa70b79 100644 --- a/src/cmd/go/internal/modload/load.go +++ b/src/cmd/go/internal/modload/load.go @@ -247,16 +247,6 @@ func pathInModuleCache(dir string) string { return "" } -// warnPattern returns list, the result of matching pattern, -// but if list is empty then first it prints a warning about -// the pattern not matching any packages. -func warnPattern(pattern string, list []string) []string { - if len(list) == 0 { - fmt.Fprintf(os.Stderr, "warning: %q matched no packages\n", pattern) - } - return list -} - // ImportFromFiles adds modules to the build list as needed // to satisfy the imports in the named Go source files. func ImportFromFiles(gofiles []string) { -- 2.50.0