diff options
| author | Bryan C. Mills <bcmills@google.com> | 2019-07-09 17:33:58 -0400 |
|---|---|---|
| committer | Bryan C. Mills <bcmills@google.com> | 2019-07-10 15:52:04 +0000 |
| commit | a05c13206450322844dd67cdf2acac430338c7cd (patch) | |
| tree | 6c7f9d96c46526e8ddaf0e4b8713506d4061a594 | |
| parent | 0067586953f7a6b6048e2abaec8794cbaccd0168 (diff) | |
| download | go-a05c13206450322844dd67cdf2acac430338c7cd.tar.xz | |
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 <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Reviewed-by: Jay Conrod <jayconrod@google.com>
| -rw-r--r-- | src/cmd/go/internal/modload/load.go | 10 |
1 files changed, 0 insertions, 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) { |
