diff --git a/playground/server.go b/playground/server.go index 1cfd61f..5415265 100644 --- a/playground/server.go +++ b/playground/server.go @@ -122,13 +122,6 @@ func (p *peerState) setRoom(roomID string, info roomInfo) { p.mu.Unlock() } -func (p *peerState) roomFor(roomID string) (roomInfo, bool) { - p.mu.Lock() - defer p.mu.Unlock() - info, ok := p.rooms[roomID] - return info, ok -} - // --------------------------------------------------------------------------- // Hub: the registry of peers, protected by a single mutex. // ---------------------------------------------------------------------------