]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/modload: remove unused warnPattern function
authorBryan C. Mills <bcmills@google.com>
Tue, 9 Jul 2019 21:33:58 +0000 (17:33 -0400)
committerBryan C. Mills <bcmills@google.com>
Wed, 10 Jul 2019 15:52:04 +0000 (15:52 +0000)
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>
src/cmd/go/internal/modload/load.go

index 1e9a1a3c35e05fcf8004e53b0100dafbd8c84801..992fa70b792e17944a9c619b5e5cd94187b06647 100644 (file)
@@ -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) {