From 85511a642f851100d0d856f4ecbe7fea7a7bb049 Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Wed, 16 Aug 2017 22:11:45 +0200 Subject: Cleanup various headers to reduce compilation times (#6255) * Cleanup various headers to reduce compilation times --- src/network/connection.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/network/connection.h') diff --git a/src/network/connection.h b/src/network/connection.h index 289c79125..3dc87b489 100644 --- a/src/network/connection.h +++ b/src/network/connection.h @@ -24,7 +24,6 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "socket.h" #include "exceptions.h" #include "constants.h" -#include "network/networkpacket.h" #include "util/pointer.h" #include "util/container.h" #include "util/thread.h" @@ -433,15 +432,8 @@ struct ConnectionCommand type = CONNCMD_DISCONNECT_PEER; peer_id = peer_id_; } - void send(u16 peer_id_, u8 channelnum_, - NetworkPacket* pkt, bool reliable_) - { - type = CONNCMD_SEND; - peer_id = peer_id_; - channelnum = channelnum_; - data = pkt->oldForgePacket(); - reliable = reliable_; - } + + void send(u16 peer_id_, u8 channelnum_, NetworkPacket* pkt, bool reliable_); void ack(u16 peer_id_, u8 channelnum_, const SharedBuffer &data_) { -- cgit v1.2.3