changeset 20642:c1cf2d256f83 draft

(svn r25593) -Cleanup: remove a few stale #defines
author rubidium <rubidium@openttd.org>
date Sat, 13 Jul 2013 06:18:16 +0000
parents 5eb738001301
children 9f978a6bfe02
files src/network/core/tcp_content.cpp src/network/core/tcp_game.cpp src/network/core/udp.cpp
diffstat 3 files changed, 0 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/src/network/core/tcp_content.cpp
+++ b/src/network/core/tcp_content.cpp
@@ -153,12 +153,6 @@
 }
 
 /**
- * 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
--- a/src/network/core/tcp_game.cpp
+++ b/src/network/core/tcp_game.cpp
@@ -57,12 +57,6 @@
 
 
 /**
- * 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.
--- a/src/network/core/udp.cpp
+++ b/src/network/core/udp.cpp
@@ -283,12 +283,6 @@
 }
 
 /**
- * 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