diff --git a/include/libtorrent/torrent.hpp b/include/libtorrent/torrent.hpp index 9a9861cb6..c5b1baf13 100755 --- a/include/libtorrent/torrent.hpp +++ b/include/libtorrent/torrent.hpp @@ -411,15 +411,6 @@ namespace libtorrent void received_redundant_data(int num_bytes) { assert(num_bytes > 0); m_total_redundant_bytes += num_bytes; } - float priority() const - { return m_priority; } - - void set_priority(float p) - { - assert(p >= 0.f && p <= 1.f); - m_priority = p; - } - bool is_seed() const { return valid_metadata() @@ -626,11 +617,6 @@ namespace libtorrent // is called and the time scaler is reset to 0. int m_time_scaler; - // this is the priority of this torrent. It is used - // to weight the assigned upload bandwidth between peers - // it should be within the range [0, 1] - float m_priority; - // the bitmask that says which pieces we have std::vector m_have_pieces; diff --git a/src/torrent.cpp b/src/torrent.cpp index fbc9fbff0..f48c8d8c5 100755 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -255,7 +255,6 @@ namespace libtorrent , m_currently_trying_tracker(0) , m_failed_trackers(0) , m_time_scaler(0) - , m_priority(.5) , m_num_pieces(0) , m_sequenced_download_threshold(0) , m_got_tracker_response(false) @@ -339,7 +338,6 @@ namespace libtorrent , m_currently_trying_tracker(0) , m_failed_trackers(0) , m_time_scaler(0) - , m_priority(.5) , m_num_pieces(0) , m_sequenced_download_threshold(0) , m_got_tracker_response(false) @@ -2400,7 +2398,6 @@ namespace libtorrent // This check is very expensive. assert(m_num_pieces == std::count(m_have_pieces.begin(), m_have_pieces.end(), true)); - assert(m_priority >= 0.f && m_priority < 1.f); assert(!valid_metadata() || m_block_size > 0); assert(!valid_metadata() || (m_torrent_file.piece_length() % m_block_size) == 0); // if (is_seed()) assert(m_picker.get() == 0);