From 4a414d50f1c8b3a80cffdc66119cf27aaa40ae9e Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Wed, 23 Jan 2019 02:38:46 +0200 Subject: [PATCH] Remove leftover tracker authentication code --- src/base/bittorrent/session.cpp | 6 ------ src/base/bittorrent/session.h | 1 - src/base/bittorrent/torrenthandle.cpp | 3 --- 3 files changed, 10 deletions(-) diff --git a/src/base/bittorrent/session.cpp b/src/base/bittorrent/session.cpp index b3296faad..89ae45c9d 100644 --- a/src/base/bittorrent/session.cpp +++ b/src/base/bittorrent/session.cpp @@ -3453,12 +3453,6 @@ void Session::handleTorrentTrackerError(TorrentHandle *const torrent, const QStr emit trackerError(torrent, trackerUrl); } -void Session::handleTorrentTrackerAuthenticationRequired(TorrentHandle *const torrent, const QString &trackerUrl) -{ - Q_UNUSED(trackerUrl); - emit trackerAuthenticationRequired(torrent); -} - void Session::handleTorrentTrackerWarning(TorrentHandle *const torrent, const QString &trackerUrl) { emit trackerWarning(torrent, trackerUrl); diff --git a/src/base/bittorrent/session.h b/src/base/bittorrent/session.h index 053d84371..d4fd22ee2 100644 --- a/src/base/bittorrent/session.h +++ b/src/base/bittorrent/session.h @@ -489,7 +489,6 @@ namespace BitTorrent void handleTorrentTrackerReply(TorrentHandle *const torrent, const QString &trackerUrl); void handleTorrentTrackerWarning(TorrentHandle *const torrent, const QString &trackerUrl); void handleTorrentTrackerError(TorrentHandle *const torrent, const QString &trackerUrl); - void handleTorrentTrackerAuthenticationRequired(TorrentHandle *const torrent, const QString &trackerUrl); signals: void statsUpdated(); diff --git a/src/base/bittorrent/torrenthandle.cpp b/src/base/bittorrent/torrenthandle.cpp index cfbcd44c9..ba437b5e4 100644 --- a/src/base/bittorrent/torrenthandle.cpp +++ b/src/base/bittorrent/torrenthandle.cpp @@ -1463,9 +1463,6 @@ void TorrentHandle::handleTrackerErrorAlert(const libtorrent::tracker_error_aler m_trackerInfos[trackerUrl].lastMessage = message; - if (p->status_code == 401) - m_session->handleTorrentTrackerAuthenticationRequired(this, trackerUrl); - m_session->handleTorrentTrackerError(this, trackerUrl); }