summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/network/core/tcp_content.cpp6
-rw-r--r--src/network/core/tcp_game.cpp6
-rw-r--r--src/network/core/udp.cpp6
3 files changed, 0 insertions, 18 deletions
diff --git a/src/network/core/tcp_content.cpp b/src/network/core/tcp_content.cpp
index 164f8de3c..ecef92a4f 100644
--- a/src/network/core/tcp_content.cpp
+++ b/src/network/core/tcp_content.cpp
@@ -153,12 +153,6 @@ void NetworkContentSocketHandler::Close()
}
/**
- * Defines a simple (switch) case for each network packet
- * @param type the packet type to create the case for
- */
-#define CONTENT_COMMAND(type) case type: return this->NetworkPacketReceive_ ## type ## _command(p); break;
-
-/**
* Handle the given packet, i.e. pass it to the right
* parser receive command.
* @param p the packet to handle
diff --git a/src/network/core/tcp_game.cpp b/src/network/core/tcp_game.cpp
index 64b7ba97a..711d6a2b7 100644
--- a/src/network/core/tcp_game.cpp
+++ b/src/network/core/tcp_game.cpp
@@ -57,12 +57,6 @@ NetworkRecvStatus NetworkGameSocketHandler::CloseConnection(bool error)
/**
- * Defines a simple (switch) case for each network packet
- * @param type the packet type to create the case for
- */
-#define GAME_COMMAND(type) case type: return this->NetworkPacketReceive_ ## type ## _command(p); break;
-
-/**
* Handle the given packet, i.e. pass it to the right parser receive command.
* @param p the packet to handle
* @return #NetworkRecvStatus of handling.
diff --git a/src/network/core/udp.cpp b/src/network/core/udp.cpp
index 4c74af3f6..ff6ecc6d1 100644
--- a/src/network/core/udp.cpp
+++ b/src/network/core/udp.cpp
@@ -283,12 +283,6 @@ void NetworkUDPSocketHandler::ReceiveNetworkGameInfo(Packet *p, NetworkGameInfo
}
/**
- * Defines a simple (switch) case for each network packet
- * @param type the packet type to create the case for
- */
-#define UDP_COMMAND(type) case type: this->NetworkPacketReceive_ ## type ## _command(p, client_addr); break;
-
-/**
* Handle an incoming packets by sending it to the correct function.
* @param p the received packet
* @param client_addr the sender of the packet