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); }