From 2405f25c6b5e1c824599b8a4d76e6bda0b083849 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 18 Jun 2025 12:37:19 +0800 Subject: internal: remove unused m_name --- include/libsock/server/client.hpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'include/libsock/server') diff --git a/include/libsock/server/client.hpp b/include/libsock/server/client.hpp index 59870ce..3ed4516 100644 --- a/include/libsock/server/client.hpp +++ b/include/libsock/server/client.hpp @@ -39,7 +39,6 @@ class Client { Client(SP server = SP(pServer), SP clients = pClients, bool track = false, bool oneShot = true); ~Client(); - const std::string &getName() const; const std::string &getIp() const; bool isAdmin() const; @@ -58,7 +57,6 @@ class Client { SP m_sockfd; sockaddr_in m_addr; socklen_t m_addrLen = sizeof(m_addr); - std::string m_name; std::string m_ip; int m_port; bool m_track; @@ -88,10 +86,8 @@ class Clients { void kick(WP client, const bool kill = false, const std::string &reason = "", std::optional>>::iterator &)>> cb = std::nullopt); void addClient(const Client &client); - bool nameExists(const std::string &name); void shutdownClients(std::optional>> &)>> cb = std::nullopt); - SP getByName(const std::string &name) const; SP getByIp(const std::string &ip) const; std::vector> getClients() const; std::vector getDatas() const; -- cgit v1.2.3