misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-02-20 10:58:20 +01:00
commit dfd139cab1

View file

@ -100,12 +100,6 @@ func (p *EventPool) Clear() {
p.events = make([]Event, 0)
}
func (p *EventPool) Events() []Event {
p.Lock()
defer p.Unlock()
return p.events
}
func (p *EventPool) Sorted() []Event {
p.Lock()
defer p.Unlock()