移除无用代码

This commit is contained in:
aozhiwei 2020-05-19 16:18:14 +08:00
parent 0e523546f9
commit 528ab45d07

View File

@ -147,14 +147,6 @@ int RoomMgr::OverRoomNum()
Room* RoomMgr::GetJoinableRoom(const cs::CMJoin& msg, const RoomType_e self_room_type)
{
#if 0
for (auto& pair : inactive_room_hash_) {
if (pair.second->CanJoin(msg.account_id(), self_room_type)) {
return pair.second;
}
}
return nullptr;
#else
std::vector<std::vector<Room*>> group_rooms;
for (int i = 0; i < RT_Max; ++i) {
group_rooms.push_back(std::vector<Room*>());
@ -191,7 +183,6 @@ Room* RoomMgr::GetJoinableRoom(const cs::CMJoin& msg, const RoomType_e self_room
}
}
return nullptr;
#endif
}
Room* RoomMgr::GetRoomByUuid(long long room_uuid)