remove unused function with a bug in it. fix an unused variable warning

This commit is contained in:
Arvid Norberg 2013-05-10 04:47:56 +00:00
parent 0a2d78689b
commit 30683d4bde
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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)
{