Skip to content

Commit 8ac0cf5

Browse files
committedJul 14, 2015
connection.cpp: remove unused constructor
1 parent 515e702 commit 8ac0cf5

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed
 

Diff for: ‎src/network/connection.cpp

-24
Original file line numberDiff line numberDiff line change
@@ -2639,30 +2639,6 @@ SharedBuffer<u8> ConnectionReceiveThread::processPacket(Channel *channel,
26392639
Connection
26402640
*/
26412641

2642-
Connection::Connection(u32 protocol_id, u32 max_packet_size, float timeout,
2643-
bool ipv6) :
2644-
m_udpSocket(ipv6),
2645-
m_command_queue(),
2646-
m_event_queue(),
2647-
m_peer_id(0),
2648-
m_protocol_id(protocol_id),
2649-
m_sendThread(max_packet_size, timeout),
2650-
m_receiveThread(max_packet_size),
2651-
m_info_mutex(),
2652-
m_bc_peerhandler(0),
2653-
m_bc_receive_timeout(0),
2654-
m_shutting_down(false),
2655-
m_next_remote_peer_id(2)
2656-
{
2657-
m_udpSocket.setTimeoutMs(5);
2658-
2659-
m_sendThread.setParent(this);
2660-
m_receiveThread.setParent(this);
2661-
2662-
m_sendThread.Start();
2663-
m_receiveThread.Start();
2664-
}
2665-
26662642
Connection::Connection(u32 protocol_id, u32 max_packet_size, float timeout,
26672643
bool ipv6, PeerHandler *peerhandler) :
26682644
m_udpSocket(ipv6),

Diff for: ‎src/network/connection.h

-1
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,6 @@ class Connection
10131013
friend class ConnectionSendThread;
10141014
friend class ConnectionReceiveThread;
10151015

1016-
Connection(u32 protocol_id, u32 max_packet_size, float timeout, bool ipv6);
10171016
Connection(u32 protocol_id, u32 max_packet_size, float timeout, bool ipv6,
10181017
PeerHandler *peerhandler);
10191018
~Connection();

0 commit comments

Comments
 (0)
Please sign in to comment.