From 3b765a7b35d9fe1c4e46fb9e58604e3c916bf495 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Sat, 9 Jun 2018 04:29:48 +0200 Subject: [PATCH] remove unused code --- common/signal/notifier.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/common/signal/notifier.go b/common/signal/notifier.go index 908bc9e815..19836e54f9 100755 --- a/common/signal/notifier.go +++ b/common/signal/notifier.go @@ -1,7 +1,5 @@ package signal -import "io" - // Notifier is a utility for notifying changes. The change producer may notify changes multiple time, and the consumer may get notified asynchronously. type Notifier struct { c chan struct{} @@ -26,18 +24,3 @@ func (n *Notifier) Signal() { func (n *Notifier) Wait() <-chan struct{} { return n.c } - -type nCloser struct { - n *Notifier -} - -func (c *nCloser) Close() error { - c.n.Signal() - return nil -} - -func NotifyClose(n *Notifier) io.Closer { - return &nCloser{ - n: n, - } -}