x/tools/imports: remove unused type gate.
Found with honnef.co/go/tools/cmd/unused.
Change-Id: I3e40d58044c250bfeafc77e5eef4533390ace12b
Reviewed-on: https://go-review.googlesource.com/37607
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
diff --git a/imports/fix.go b/imports/fix.go
index c74bdd2..ab29ce9 100644
--- a/imports/fix.go
+++ b/imports/fix.go
@@ -378,12 +378,6 @@
}
func (s byImportPathShortLength) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
-// gate is a semaphore for limiting concurrency.
-type gate chan struct{}
-
-func (g gate) enter() { g <- struct{}{} }
-func (g gate) leave() { <-g }
-
var visitedSymlinks struct {
sync.Mutex
m map[string]struct{}