diff options
Diffstat (limited to 'src/network/network_base.h')
-rw-r--r-- | src/network/network_base.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/network/network_base.h b/src/network/network_base.h index 3044de7a1..929c4b7ba 100644 --- a/src/network/network_base.h +++ b/src/network/network_base.h @@ -27,11 +27,6 @@ struct NetworkClientInfo : PoolItem<NetworkClientInfo, ClientIndex, &_NetworkCli inline bool IsValid() const { return client_id != INVALID_CLIENT_ID; } }; -static inline bool IsValidNetworkClientInfoIndex(ClientIndex index) -{ - return (uint)index < NetworkClientInfo::GetPoolSize() && NetworkClientInfo::Get(index)->IsValid(); -} - #define FOR_ALL_CLIENT_INFOS_FROM(d, start) for (d = NetworkClientInfo::Get(start); d != NULL; d = (d->index + 1U < NetworkClientInfo::GetPoolSize()) ? NetworkClientInfo::Get(d->index + 1U) : NULL) if (d->IsValid()) #define FOR_ALL_CLIENT_INFOS(d) FOR_ALL_CLIENT_INFOS_FROM(d, 0) |