forked from premiere/premiere-libtorrent
remove unused function with a bug in it. fix an unused variable warning
This commit is contained in:
parent
0a2d78689b
commit
30683d4bde
|
@ -466,8 +466,7 @@ namespace libtorrent
|
|||
void set_not_have() { index = 0; TORRENT_ASSERT(!have()); }
|
||||
|
||||
bool filtered() const { return piece_priority == filter_priority; }
|
||||
void filtered(bool f) { piece_priority = f ? filter_priority : 0; }
|
||||
|
||||
|
||||
// prio 7 is always top priority
|
||||
// prio 0 is always -1 (don't pick)
|
||||
// downloading pieces are always on an even prio_factor priority
|
||||
|
|
|
@ -904,7 +904,9 @@ namespace libtorrent
|
|||
// || (iter != m_peers.end() && c.remote().address() < (*iter)->address())
|
||||
// || (iter != m_peers.end() && iter != m_peers.begin() && (*(iter-1))->address() < c.remote().address()));
|
||||
|
||||
#if !defined TORRENT_DISABLE_GEO_IP || TORRENT_LOGGING || defined TORRENT_VERBOSE_LOGGING
|
||||
aux::session_impl& ses = m_torrent->session();
|
||||
#endif
|
||||
|
||||
if (found)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue