Skip to content
Snippets Groups Projects
Commit 8ac0cf50 authored by Loïc Blot's avatar Loïc Blot
Browse files

connection.cpp: remove unused constructor

parent 515e7028
No related branches found
No related tags found
No related merge requests found
...@@ -2639,30 +2639,6 @@ SharedBuffer<u8> ConnectionReceiveThread::processPacket(Channel *channel, ...@@ -2639,30 +2639,6 @@ SharedBuffer<u8> ConnectionReceiveThread::processPacket(Channel *channel,
Connection Connection
*/ */
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, Connection::Connection(u32 protocol_id, u32 max_packet_size, float timeout,
bool ipv6, PeerHandler *peerhandler) : bool ipv6, PeerHandler *peerhandler) :
m_udpSocket(ipv6), m_udpSocket(ipv6),
......
...@@ -1013,7 +1013,6 @@ class Connection ...@@ -1013,7 +1013,6 @@ class Connection
friend class ConnectionSendThread; friend class ConnectionSendThread;
friend class ConnectionReceiveThread; friend class ConnectionReceiveThread;
Connection(u32 protocol_id, u32 max_packet_size, float timeout, bool ipv6);
Connection(u32 protocol_id, u32 max_packet_size, float timeout, bool ipv6, Connection(u32 protocol_id, u32 max_packet_size, float timeout, bool ipv6,
PeerHandler *peerhandler); PeerHandler *peerhandler);
~Connection(); ~Connection();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment