mirror of
https://github.com/golang/go
synced 2024-11-18 16:44:43 -07:00
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>
This commit is contained in:
parent
ee178bea37
commit
1dce95f761
@ -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] }
|
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 {
|
var visitedSymlinks struct {
|
||||||
sync.Mutex
|
sync.Mutex
|
||||||
m map[string]struct{}
|
m map[string]struct{}
|
||||||
|
Loading…
Reference in New Issue
Block a user