remove more dead code from broker

This commit is contained in:
Serene Han 2016-04-02 21:50:26 -07:00 committed by Arlo Breault
parent 14fc6a13c2
commit 0f952408d3

View file

@ -2,10 +2,6 @@
Broker acts as the HTTP signaling channel.
It matches clients and snowflake proxies by passing corresponding
SessionDescriptions in order to negotiate a WebRTC connection.
TODO(serene): This code is currently the absolute minimum required to
cause a successful negotiation.
It's otherwise very unsafe and problematic, and needs quite some work...
*/
package snowflake_broker
@ -82,8 +78,6 @@ func (ctx *BrokerContext) RequestOffer(id string) []byte {
func (ctx *BrokerContext) Broker() {
for request := range ctx.proxyPolls {
snowflake := ctx.AddSnowflake(request.id)
// defer heap.Remove(ctx.snowflakes, snowflake.index)
// defer delete(ctx.idToSnowflake, snowflake.id)
// Wait for a client to avail an offer to the snowflake.
go func(request *ProxyPoll) {
select {