diff --git a/include/SessionManager.h b/include/SessionManager.h index 82c6ed1..bc1ceb3 100644 --- a/include/SessionManager.h +++ b/include/SessionManager.h @@ -10,7 +10,6 @@ class SessionManager { public: static SessionManager &GetInstance(); - void Join(std::shared_ptr session); bool TryJoin(std::shared_ptr session, const std::string &nickname); void Leave(std::shared_ptr session); void Broadcast(PacketHeader header, std::span body); diff --git a/server/SessionManager.cpp b/server/SessionManager.cpp index 3f4e5be..35c19ba 100644 --- a/server/SessionManager.cpp +++ b/server/SessionManager.cpp @@ -6,13 +6,6 @@ SessionManager &SessionManager::GetInstance() { return instance; } -void SessionManager::Join(std::shared_ptr session) { - std::lock_guard lock(mutex_); - sessions_.insert(session); - Logger::Log("클라이언트[", session->GetNickname(), - "]가 입장했습니다. 총 세션 수: ", sessions_.size()); -} - void SessionManager::Leave(std::shared_ptr session) { std::lock_guard lock(mutex_); if (sessions_.erase(session) > 0) {