func (hub *hub) remove(cn *channel) {
	hub.Lock()
	defer hub.Unlock()
	cn, ok := hub.channels[cn.name]
	if !ok {
		return
	}
	delete(hub.channels, cn.name)
	return
}
func (hub *hub) remove(cn *channel) {
	hub.Lock()
	defer hub.Unlock()
	cn, ok := hub.channels[cn.name]
	if !ok {
		return
	}
	delete(hub.channels, cn.name)
	return
}
func ( hub * hub ) remove ( cn * channel ) { hub . Lock ( ) defer hub . Unlock ( ) cn , ok := hub . channels [ cn . name ] if ! ok { return } delete ( hub . channels , cn . name ) return }
// Removes given channel, called by Channel.Close.
Removes given channel called by Channel . Close .