Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed Jun 9, 2018
1 parent 70abb68 commit 3b765a7
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions common/signal/notifier.go
Original file line number Diff line number Diff line change
@@ -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{}
Expand All @@ -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,
}
}

0 comments on commit 3b765a7

Please sign in to comment.