aboutsummaryrefslogtreecommitdiff
path: root/src/clientiface.cpp
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2021-10-12 20:12:20 +0200
committerGitHub <noreply@github.com>2021-10-12 20:12:20 +0200
commitecc6f4ba25cd49599922333a5f8d4b4ce368992d (patch)
tree9e54d0968bde5faf2f1870c5c806fa30521a695d /src/clientiface.cpp
parent6de8d77e17017cd5cc7b065d42566b6b1cd076cc (diff)
downloadminetest-ecc6f4ba25cd49599922333a5f8d4b4ce368992d.tar.xz
Remove a few unused functions reported by callcatcher (#11658)
Diffstat (limited to 'src/clientiface.cpp')
-rw-r--r--src/clientiface.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/clientiface.cpp b/src/clientiface.cpp
index f35dcd0eb..a1c3e1187 100644
--- a/src/clientiface.cpp
+++ b/src/clientiface.cpp
@@ -714,31 +714,6 @@ void ClientInterface::sendToAll(NetworkPacket *pkt)
}
}
-void ClientInterface::sendToAllCompat(NetworkPacket *pkt, NetworkPacket *legacypkt,
- u16 min_proto_ver)
-{
- RecursiveMutexAutoLock clientslock(m_clients_mutex);
- for (auto &client_it : m_clients) {
- RemoteClient *client = client_it.second;
- NetworkPacket *pkt_to_send = nullptr;
-
- if (client->net_proto_version >= min_proto_ver) {
- pkt_to_send = pkt;
- } else if (client->net_proto_version != 0) {
- pkt_to_send = legacypkt;
- } else {
- warningstream << "Client with unhandled version to handle: '"
- << client->net_proto_version << "'";
- continue;
- }
-
- m_con->Send(client->peer_id,
- clientCommandFactoryTable[pkt_to_send->getCommand()].channel,
- pkt_to_send,
- clientCommandFactoryTable[pkt_to_send->getCommand()].reliable);
- }
-}
-
RemoteClient* ClientInterface::getClientNoEx(session_t peer_id, ClientState state_min)
{
RecursiveMutexAutoLock clientslock(m_clients_mutex);