Skip to content

Commit

Permalink
Remove unused dummy listener
Browse files Browse the repository at this point in the history
  • Loading branch information
Nils Dijk committed Aug 31, 2016
1 parent e4a0294 commit 4dc5867
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
"time"

"github.com/uber-common/bark"
"github.com/uber/ringpop-go/events"
"github.com/uber/ringpop-go/swim"
"github.com/uber/ringpop-go/util"
)
Expand Down Expand Up @@ -87,25 +86,6 @@ func (s *dummyStats) RecordTimer(key string, tags bark.Tags, d time.Duration) {
s._vals[key] += util.MS(d)
}

// fake event listener
type dummyListener struct {
l sync.Mutex
events int
}

func (d *dummyListener) EventCount() int {
d.l.Lock()
defer d.l.Unlock()

return d.events
}

func (d *dummyListener) HandleEvent(event events.Event) {
d.l.Lock()
d.events++
d.l.Unlock()
}

func genAddresses(host, fromPort, toPort int) []string {
var addresses []string

Expand Down

0 comments on commit 4dc5867

Please sign in to comment.