From 7b75ca7bb55aa25e9ef765eb8c0b69486b227357 Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Mon, 18 Jan 2016 11:15:46 -0800 Subject: [PATCH] Remove SubscribeToEvent --- events.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/events.go b/events.go index 824144926..04c9a9b2e 100644 --- a/events.go +++ b/events.go @@ -128,16 +128,6 @@ func (evsw *EventSwitch) FireEvent(event string, data EventData) { eventCell.FireEvent(data) } -func (evsw *EventSwitch) SubscribeToEvent(receiver, eventID string, chanCap int) chan interface{} { - // listen for new round - ch := make(chan interface{}, chanCap) - evsw.AddListenerForEvent(receiver, eventID, func(data EventData) { - // NOTE: in production, evsw callbacks should be nonblocking. - ch <- data - }) - return ch -} - //----------------------------------------------------------------------------- // eventCell handles keeping track of listener callbacks for a given event.