remove unused code

pull/1162/merge
Darien Raymond 2018-06-09 04:29:48 +02:00
parent 70abb689bf
commit 3b765a7b35
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 0 additions and 17 deletions

View File

@ -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,
}
}