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 <adonovan@google.com>
diff --git a/go/packages/golist.go b/go/packages/golist.go
index 56c1e29..ff42de4 100644
--- a/go/packages/golist.go
+++ b/go/packages/golist.go
@@ -83,18 +83,6 @@
}
}
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