diff --git a/imports/fix.go b/imports/fix.go index c74bdd2c..ab29ce9c 100644 --- a/imports/fix.go +++ b/imports/fix.go @@ -378,12 +378,6 @@ func (s byImportPathShortLength) Less(i, j int) bool { } 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{}