From 1b4398bdff7c686e2d3c81e04db068f5b18f8165 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 3 Apr 2024 22:24:30 +0800 Subject: [PATCH] 1 --- server/gameserver/roommgr.cc | 5 ----- server/gameserver/roommgr.h | 2 -- 2 files changed, 7 deletions(-) diff --git a/server/gameserver/roommgr.cc b/server/gameserver/roommgr.cc index d76f25d2..4f595177 100644 --- a/server/gameserver/roommgr.cc +++ b/server/gameserver/roommgr.cc @@ -453,11 +453,6 @@ void RoomMgr::JoinErrorHandle(const cs::CMJoin& msg, int error_code, int socket_ }); } -bool RoomMgr::IsGM(const std::string& account_id) -{ - return gm_hash_.find(account_id) != gm_hash_.end(); -} - void RoomMgr::OnJoinRoomOk(const cs::CMJoin& msg, Player* hum) { } diff --git a/server/gameserver/roommgr.h b/server/gameserver/roommgr.h index 6ba14488..c356ddeb 100644 --- a/server/gameserver/roommgr.h +++ b/server/gameserver/roommgr.h @@ -65,7 +65,6 @@ class RoomMgr : public a8::Singleton int OverRoomNum(); std::shared_ptr GetRoomByUuid(const std::string& uuid); void AddOverRoom(const std::string& room_uuid); - bool IsGM(const std::string& account_id); int GetMatchMode() { return match_mode_; }; void SetMatchMode(int mode); bool HasTask(); @@ -106,7 +105,6 @@ class RoomMgr : public a8::Singleton std::map> room_idx_hash_; std::map> over_room_hash_; f8::Attacher reportstate_timer_attacher_; - std::map gm_hash_; std::map> custom_room_hash_; std::map> his_custom_room_hash_; std::map> socket_hash_;