From 91e66f65d3a7a344b3e08849772eedc66f943977 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 23 Apr 2015 06:12:53 +0000 Subject: [PATCH] removed unused argument (and silence warning) --- include/libtorrent/peer_connection.hpp | 2 +- src/peer_connection.cpp | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/libtorrent/peer_connection.hpp b/include/libtorrent/peer_connection.hpp index 98b2b58c5..c9d1ea467 100644 --- a/include/libtorrent/peer_connection.hpp +++ b/include/libtorrent/peer_connection.hpp @@ -727,7 +727,7 @@ namespace libtorrent int num_reading_bytes() const { return m_reading_bytes; } enum sync_t { read_async, read_sync }; - void setup_receive(sync_t sync = read_sync); + void setup_receive(); boost::shared_ptr self() { diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index a2e20524f..78de6562d 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -2930,7 +2930,7 @@ namespace libtorrent // in case the outstanding bytes just dropped down // to allow to receive more data - setup_receive(read_async); + setup_receive(); piece_block block_finished(p.piece, p.start / t->block_size()); @@ -5481,7 +5481,7 @@ namespace libtorrent #endif m_counters.inc_stats_counter(counters::num_peers_down_disk, -1); m_channel_state[download_channel] &= ~peer_info::bw_disk; - setup_receive(read_async); + setup_receive(); } void peer_connection::on_allocate_disk_buffer(char* buffer, int buffer_size) @@ -5496,10 +5496,10 @@ namespace libtorrent m_counters.inc_stats_counter(counters::num_peers_down_disk, -1); m_channel_state[download_channel] &= ~peer_info::bw_disk; - setup_receive(read_async); + setup_receive(); } - void peer_connection::setup_receive(sync_t sync) + void peer_connection::setup_receive() { TORRENT_ASSERT(is_single_thread()); INVARIANT_CHECK; @@ -5832,7 +5832,7 @@ namespace libtorrent // allow reading from the socket again TORRENT_ASSERT(m_channel_state[download_channel] & peer_info::bw_network); m_channel_state[download_channel] &= ~peer_info::bw_network; - setup_receive(read_async); + setup_receive(); return; } disconnect(ec, op_sock_read); @@ -6021,7 +6021,7 @@ namespace libtorrent TORRENT_ASSERT(m_channel_state[download_channel] & peer_info::bw_network); m_channel_state[download_channel] &= ~peer_info::bw_network; - setup_receive(read_async); + setup_receive(); } bool peer_connection::can_write() const