diff --git a/include/libtorrent/piece_picker.hpp b/include/libtorrent/piece_picker.hpp index 1c55cfa05..d17b01f8f 100644 --- a/include/libtorrent/piece_picker.hpp +++ b/include/libtorrent/piece_picker.hpp @@ -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 diff --git a/src/policy.cpp b/src/policy.cpp index 9741dc68e..449f8ab5f 100644 --- a/src/policy.cpp +++ b/src/policy.cpp @@ -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) {