From 1dce95f761bfeb6fe2aa3c4e9ffdb261b69b3fc4 Mon Sep 17 00:00:00 2001 From: "David R. Jenni" Date: Wed, 1 Mar 2017 12:38:50 +0100 Subject: [PATCH] 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 Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- imports/fix.go | 6 ------ 1 file changed, 6 deletions(-) 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{}