Merge pull request #564 from arvidn/dead-code-1.1

remove dead code in peer_connection
This commit is contained in:
Arvid Norberg 2016-03-21 21:01:57 -04:00
commit 710442ed91
2 changed files with 0 additions and 17 deletions

View File

@ -719,8 +719,6 @@ namespace libtorrent
// start downloading payload again
void on_disk();
void on_allocate_disk_buffer(char* buffer, int buffer_size);
int num_reading_bytes() const { return m_reading_bytes; }
enum sync_t { read_async, read_sync };

View File

@ -5701,21 +5701,6 @@ namespace libtorrent
setup_receive();
}
void peer_connection::on_allocate_disk_buffer(char* buffer, int buffer_size)
{
TORRENT_ASSERT(is_single_thread());
INVARIANT_CHECK;
TORRENT_ASSERT(m_channel_state[download_channel] & peer_info::bw_disk);
m_recv_buffer.assign_disk_buffer(buffer, buffer_size);
m_counters.inc_stats_counter(counters::num_peers_down_disk, -1);
m_channel_state[download_channel] &= ~peer_info::bw_disk;
setup_receive();
}
void peer_connection::setup_receive()
{
TORRENT_ASSERT(is_single_thread());