chore: remove dead roomFor method in playground server
This commit is contained in:
@@ -122,13 +122,6 @@ func (p *peerState) setRoom(roomID string, info roomInfo) {
|
|||||||
p.mu.Unlock()
|
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.
|
// Hub: the registry of peers, protected by a single mutex.
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user