diff --git a/server/gameserver/matchpool.cc b/server/gameserver/matchpool.cc index 0208d998..668ec35d 100644 --- a/server/gameserver/matchpool.cc +++ b/server/gameserver/matchpool.cc @@ -55,12 +55,6 @@ void MatchPool::TraverseTeam(std::function func) } } -std::tuple* MatchPool::GetMatchInfo(int socket_handle) -{ - auto itr = socket_hash_.find(socket_handle); - return itr != socket_hash_.end() ? &itr->second : nullptr; -} - void MatchPool::RemoveTeam(const std::string& team_uuid) { auto itr = team_hash_.find(team_uuid); diff --git a/server/gameserver/matchpool.h b/server/gameserver/matchpool.h index 044d97a3..7608e7a8 100644 --- a/server/gameserver/matchpool.h +++ b/server/gameserver/matchpool.h @@ -25,7 +25,6 @@ private: bool NeedMatch(const cs::CMJoin& msg); MatchTeamNew* GetTeam(const std::string& team_uuid); - std::tuple* GetMatchInfo(int socket_handle); void RemoveTeam(const std::string& team_uuid); void RemoveSocket(int socket_handle); void Update(); @@ -34,8 +33,8 @@ private: a8::TimerAttacher timer_attacher_; std::map team_hash_; std::map> socket_hash_; - std::map> group_hash_; + std::map> group_hash_; std::map> matching_list_; std::map> matchok_list_; };