remove unused emit function calls

This commit is contained in:
c9s 2021-05-21 02:17:40 +08:00
parent d930816672
commit d2003bbc3d
2 changed files with 1 additions and 4 deletions

View File

@ -244,8 +244,6 @@ func (b *OrderBook) updateAsks(pvs PriceVolumeSlice) {
b.Asks = b.Asks.Upsert(pv, false) b.Asks = b.Asks.Upsert(pv, false)
} }
} }
b.EmitAsksChange(b.Asks)
} }
func (b *OrderBook) updateBids(pvs PriceVolumeSlice) { func (b *OrderBook) updateBids(pvs PriceVolumeSlice) {
@ -256,8 +254,6 @@ func (b *OrderBook) updateBids(pvs PriceVolumeSlice) {
b.Bids = b.Bids.Upsert(pv, true) b.Bids = b.Bids.Upsert(pv, true)
} }
} }
b.EmitBidsChange(b.Bids)
} }
func (b *OrderBook) update(book OrderBook) { func (b *OrderBook) update(book OrderBook) {

View File

@ -2,6 +2,7 @@ package types
import "github.com/c9s/bbgo/pkg/fixedpoint" import "github.com/c9s/bbgo/pkg/fixedpoint"
// Color is the RB Tree color
type Color bool type Color bool
const ( const (