forked from premiere/premiere-libtorrent
removed unused session_impl member, m_next_disk_peer
This commit is contained in:
parent
01640e1682
commit
fa613131c2
|
@ -1156,10 +1156,6 @@ namespace libtorrent
|
|||
// to the next torrent to auto-scrape
|
||||
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
|
||||
void check_invariant() const;
|
||||
#endif
|
||||
|
|
|
@ -583,7 +583,6 @@ namespace aux {
|
|||
m_next_downloading_connect_torrent = 0;
|
||||
m_next_finished_connect_torrent = 0;
|
||||
m_next_scrape_torrent = 0;
|
||||
m_next_disk_peer = m_connections.begin();
|
||||
|
||||
m_tcp_mapping[0] = -1;
|
||||
m_tcp_mapping[1] = -1;
|
||||
|
@ -3190,8 +3189,6 @@ retry:
|
|||
TORRENT_ASSERT(!c->m_in_constructor);
|
||||
m_connections.insert(c);
|
||||
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);
|
||||
// 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 (m_next_disk_peer == m_connections.end()) m_next_disk_peer = m_connections.begin();
|
||||
}
|
||||
|
||||
// implements alert_dispatcher
|
||||
|
|
Loading…
Reference in New Issue