summaryrefslogtreecommitdiff
path: root/src/network/connection.cpp
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-07-14 17:56:55 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2015-07-14 18:33:20 +0200
commit8ac0cf500ff336c43f6c42b306431fa6564b7cc8 (patch)
tree4b52f8f714c577fddd2f0b16dcd9f95860360d07 /src/network/connection.cpp
parent515e7028ac5121bc6a5205b12aae731eed630b05 (diff)
downloadminetest-8ac0cf500ff336c43f6c42b306431fa6564b7cc8.tar.gz
minetest-8ac0cf500ff336c43f6c42b306431fa6564b7cc8.tar.bz2
minetest-8ac0cf500ff336c43f6c42b306431fa6564b7cc8.zip
connection.cpp: remove unused constructor
Diffstat (limited to 'src/network/connection.cpp')
-rw-r--r--src/network/connection.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/network/connection.cpp b/src/network/connection.cpp
index 6e8bbd6c3..d0670e66e 100644
--- a/src/network/connection.cpp
+++ b/src/network/connection.cpp
@@ -2640,30 +2640,6 @@ SharedBuffer<u8> ConnectionReceiveThread::processPacket(Channel *channel,
*/
Connection::Connection(u32 protocol_id, u32 max_packet_size, float timeout,
- bool ipv6) :
- m_udpSocket(ipv6),
- m_command_queue(),
- m_event_queue(),
- m_peer_id(0),
- m_protocol_id(protocol_id),
- m_sendThread(max_packet_size, timeout),
- m_receiveThread(max_packet_size),
- m_info_mutex(),
- m_bc_peerhandler(0),
- m_bc_receive_timeout(0),
- m_shutting_down(false),
- m_next_remote_peer_id(2)
-{
- m_udpSocket.setTimeoutMs(5);
-
- m_sendThread.setParent(this);
- m_receiveThread.setParent(this);
-
- m_sendThread.Start();
- m_receiveThread.Start();
-}
-
-Connection::Connection(u32 protocol_id, u32 max_packet_size, float timeout,
bool ipv6, PeerHandler *peerhandler) :
m_udpSocket(ipv6),
m_command_queue(),