From fa6203fdc30a0879bcee79087573bba1315e0b62 Mon Sep 17 00:00:00 2001 From: alberth Date: Sun, 29 Aug 2010 12:37:49 +0000 Subject: (svn r20678) -Codechange: Remove unused NetworkFindClientInfoFromIndex(), NetworkFindClientInfoFromIP(). --- src/network/network.cpp | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'src/network/network.cpp') diff --git a/src/network/network.cpp b/src/network/network.cpp index 00863f8ad..06c46a01d 100644 --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -109,16 +109,6 @@ NetworkClientInfo::~NetworkClientInfo() InvalidateWindowData(WC_SEND_NETWORK_MSG, DESTTYPE_CLIENT, this->client_id); } -/** - * Return the CI given it's raw index - * @param index the index to search for - * @return return a pointer to the corresponding NetworkClientInfo struct - */ -NetworkClientInfo *NetworkFindClientInfoFromIndex(ClientIndex index) -{ - return NetworkClientInfo::GetIfValid(index); -} - /** * Return the CI given it's client-identifier * @param client_id the ClientID to search for @@ -135,25 +125,6 @@ NetworkClientInfo *NetworkFindClientInfoFromClientID(ClientID client_id) return NULL; } -/** - * Return the CI for a given IP - * @param ip IP of the client we are looking for. This must be in string-format - * @return return a pointer to the corresponding NetworkClientInfo struct or NULL when not found - */ -NetworkClientInfo *NetworkFindClientInfoFromIP(const char *ip) -{ - NetworkClientInfo *ci; - NetworkAddress address(ip); - - if (address.GetAddressLength() == 0) return NULL; - - FOR_ALL_CLIENT_INFOS(ci) { - if (ci->client_address == address) return ci; - } - - return NULL; -} - /** * Return the client state given it's client-identifier * @param client_id the ClientID to search for -- cgit v1.2.3-70-g09d2