Browse Source

Remove leftover tracker authentication code

adaptive-webui-19844
sledgehammer999 6 years ago
parent
commit
4a414d50f1
No known key found for this signature in database
GPG Key ID: 6E4A2D025B7CC9A2
  1. 6
      src/base/bittorrent/session.cpp
  2. 1
      src/base/bittorrent/session.h
  3. 3
      src/base/bittorrent/torrenthandle.cpp

6
src/base/bittorrent/session.cpp

@ -3453,12 +3453,6 @@ void Session::handleTorrentTrackerError(TorrentHandle *const torrent, const QStr @@ -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);

1
src/base/bittorrent/session.h

@ -489,7 +489,6 @@ namespace BitTorrent @@ -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();

3
src/base/bittorrent/torrenthandle.cpp

@ -1463,9 +1463,6 @@ void TorrentHandle::handleTrackerErrorAlert(const libtorrent::tracker_error_aler @@ -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);
}

Loading…
Cancel
Save