Removed deprecated signals for chunks passed/failed.

This commit is contained in:
rakshasa
2013-08-22 03:48:54 +09:00
parent d8d7861244
commit 629ebcbd54
3 changed files with 2 additions and 15 deletions
-7
View File
@@ -59,13 +59,11 @@ Download::Download(download_type d) :
m_download(d),
m_hashFailed(false),
m_chunksFailed(0),
m_resumeFlags(~uint32_t()),
m_group(0) {
m_download.info()->signal_tracker_success().push_back(tr1::bind(&Download::receive_tracker_msg, this, ""));
m_download.info()->signal_tracker_failed().push_back(tr1::bind(&Download::receive_tracker_msg, this, tr1::placeholders::_1));
m_download.info()->signal_chunk_failed().push_back(tr1::bind(&Download::receive_chunk_failed, this, tr1::placeholders::_1));
}
Download::~Download() {
@@ -141,11 +139,6 @@ Download::distributed_copies() const {
return minAvail + 1 - bitfield->is_all_set() - (float)num / m_download.file_list()->size_chunks();
}
void
Download::receive_chunk_failed(__UNUSED uint32_t idx) {
m_chunksFailed++;
}
void
Download::set_throttle_name(const std::string& throttleName) {
if (m_download.info()->is_active())
-7
View File
@@ -113,8 +113,6 @@ public:
const std::string& message() const { return m_message; }
void set_message(const std::string& msg) { m_message = msg; }
uint32_t chunks_failed() const { return m_chunksFailed; }
void enable_udp_trackers(bool state);
uint32_t priority();
@@ -145,14 +143,9 @@ private:
// Store the FileList instance so we can use slots etc on it.
download_type m_download;
bool m_hashFailed;
std::string m_message;
uint32_t m_chunksFailed;
uint32_t m_resumeFlags;
unsigned int m_group;
};