removed unused session_impl member, m_next_disk_peer

This commit is contained in:
Arvid Norberg 2014-07-13 06:34:59 +00:00
parent 01640e1682
commit fa613131c2
2 changed files with 0 additions and 9 deletions

View File

@ -1156,10 +1156,6 @@ namespace libtorrent
// to the next torrent to auto-scrape // to the next torrent to auto-scrape
int m_next_scrape_torrent; int m_next_scrape_torrent;
// this is the round-robin cursor for peers that
// get to download again after the disk has been
// blocked
connection_map::iterator m_next_disk_peer;
#if TORRENT_USE_INVARIANT_CHECKS #if TORRENT_USE_INVARIANT_CHECKS
void check_invariant() const; void check_invariant() const;
#endif #endif

View File

@ -583,7 +583,6 @@ namespace aux {
m_next_downloading_connect_torrent = 0; m_next_downloading_connect_torrent = 0;
m_next_finished_connect_torrent = 0; m_next_finished_connect_torrent = 0;
m_next_scrape_torrent = 0; m_next_scrape_torrent = 0;
m_next_disk_peer = m_connections.begin();
m_tcp_mapping[0] = -1; m_tcp_mapping[0] = -1;
m_tcp_mapping[1] = -1; m_tcp_mapping[1] = -1;
@ -3190,8 +3189,6 @@ retry:
TORRENT_ASSERT(!c->m_in_constructor); TORRENT_ASSERT(!c->m_in_constructor);
m_connections.insert(c); m_connections.insert(c);
c->start(); c->start();
// update the next disk peer round-robin cursor
if (m_next_disk_peer == m_connections.end()) m_next_disk_peer = m_connections.begin();
} }
} }
@ -3259,9 +3256,7 @@ retry:
connection_map::iterator i = m_connections.find(sp); connection_map::iterator i = m_connections.find(sp);
// make sure the next disk peer round-robin cursor stays valid // make sure the next disk peer round-robin cursor stays valid
if (m_next_disk_peer == i) ++m_next_disk_peer;
if (i != m_connections.end()) m_connections.erase(i); if (i != m_connections.end()) m_connections.erase(i);
if (m_next_disk_peer == m_connections.end()) m_next_disk_peer = m_connections.begin();
} }
// implements alert_dispatcher // implements alert_dispatcher