From 88aca3a54b6cdaf9dc83f0df802e320d03cdc625 Mon Sep 17 00:00:00 2001 From: starnakin Date: Sat, 23 Dec 2023 18:36:16 +0100 Subject: [PATCH] fix: de golmon --- transcendence/abstract/AbstractRoomManager.py | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/transcendence/abstract/AbstractRoomManager.py b/transcendence/abstract/AbstractRoomManager.py index 2a2efe9..a4bf09a 100644 --- a/transcendence/abstract/AbstractRoomManager.py +++ b/transcendence/abstract/AbstractRoomManager.py @@ -5,14 +5,8 @@ class AbstractRoomManager: def __init__(self): self._room_list: [AbstractRoom] = [] - def get(self, mode: int): - for room in self._room_list: - room: A - if (waiting_room._mode == mode): - return waiting_room - tmp: WaitingRoom = WaitingRoom(self, mode) - self._waiting_rooms.append(tmp) - return tmp - - def remove(self, waiting_room: WaitingRoom): - self._waiting_rooms.remove(waiting_room) + def remove(self, room: AbstractRoom): + self._room_list.remove(room) + + def append(self, room: AbstractRoom): + self._room_list.append(room)