chore: remove dead roomFor method in playground server

This commit is contained in:
agent
2026-06-03 21:19:48 +02:00
parent 22d6106e32
commit c203ba63e6
-7
View File
@@ -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.
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------