mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-26 07:59:09 +00:00
(svn r25593) -Cleanup: remove a few stale #defines
This commit is contained in:
@@ -152,12 +152,6 @@ void NetworkContentSocketHandler::Close()
|
||||
this->sock = INVALID_SOCKET;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
|
@@ -56,12 +56,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
|
||||
|
@@ -282,12 +282,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
|
||||
|
Reference in New Issue
Block a user