forked from premiere/premiere-libtorrent
Merge pull request #564 from arvidn/dead-code-1.1
remove dead code in peer_connection
This commit is contained in:
commit
710442ed91
|
@ -719,8 +719,6 @@ namespace libtorrent
|
||||||
// start downloading payload again
|
// start downloading payload again
|
||||||
void on_disk();
|
void on_disk();
|
||||||
|
|
||||||
void on_allocate_disk_buffer(char* buffer, int buffer_size);
|
|
||||||
|
|
||||||
int num_reading_bytes() const { return m_reading_bytes; }
|
int num_reading_bytes() const { return m_reading_bytes; }
|
||||||
|
|
||||||
enum sync_t { read_async, read_sync };
|
enum sync_t { read_async, read_sync };
|
||||||
|
|
|
@ -5701,21 +5701,6 @@ namespace libtorrent
|
||||||
setup_receive();
|
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()
|
void peer_connection::setup_receive()
|
||||||
{
|
{
|
||||||
TORRENT_ASSERT(is_single_thread());
|
TORRENT_ASSERT(is_single_thread());
|
||||||
|
|
Loading…
Reference in New Issue