From aa0cdd1ef5f10a010b3c213eaf04e533755a046f Mon Sep 17 00:00:00 2001 From: Michael Matloob Date: Tue, 6 Nov 2018 16:22:53 -0500 Subject: [PATCH] go/packages: remove contains: query. it's been superceeded by file= Change-Id: I472787d50e799ef0ee663168201933dd70a1a487 Reviewed-on: https://go-review.googlesource.com/c/147977 Reviewed-by: Alan Donovan --- go/packages/golist.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/go/packages/golist.go b/go/packages/golist.go index 56c1e295..ff42de48 100644 --- a/go/packages/golist.go +++ b/go/packages/golist.go @@ -83,18 +83,6 @@ extractQueries: } } patterns = restPatterns - // Look for the deprecated contains: syntax. - // TODO(matloob): delete this around mid-October 2018. - restPatterns = restPatterns[:0] - for _, pattern := range patterns { - if strings.HasPrefix(pattern, "contains:") { - containFile := strings.TrimPrefix(pattern, "contains:") - containFiles = append(containFiles, containFile) - } else { - restPatterns = append(restPatterns, pattern) - } - } - containFiles = absJoin(cfg.Dir, containFiles) // TODO(matloob): Remove the definition of listfunc and just use golistPackages once go1.12 is released. var listfunc driver