mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
Remove unused parameter.
This commit is contained in:
parent
75d4e2a2f2
commit
87347cf0e5
@ -282,14 +282,14 @@ void PeerListWidget::loadPeers(BitTorrent::TorrentHandle *const torrent, bool fo
|
|||||||
QString peerIp = addr.ip.toString();
|
QString peerIp = addr.ip.toString();
|
||||||
if (m_peerItems.contains(peerIp)) {
|
if (m_peerItems.contains(peerIp)) {
|
||||||
// Update existing peer
|
// Update existing peer
|
||||||
updatePeer(peerIp, torrent, peer);
|
updatePeer(peerIp, peer);
|
||||||
oldeersSet.remove(peerIp);
|
oldeersSet.remove(peerIp);
|
||||||
if (forceHostnameResolution && m_resolver)
|
if (forceHostnameResolution && m_resolver)
|
||||||
m_resolver->resolve(peerIp);
|
m_resolver->resolve(peerIp);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Add new peer
|
// Add new peer
|
||||||
m_peerItems[peerIp] = addPeer(peerIp, torrent, peer);
|
m_peerItems[peerIp] = addPeer(peerIp, peer);
|
||||||
m_peerAddresses[peerIp] = addr;
|
m_peerAddresses[peerIp] = addr;
|
||||||
// Resolve peer host name is asked
|
// Resolve peer host name is asked
|
||||||
if (m_resolver)
|
if (m_resolver)
|
||||||
@ -307,7 +307,7 @@ void PeerListWidget::loadPeers(BitTorrent::TorrentHandle *const torrent, bool fo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QStandardItem* PeerListWidget::addPeer(const QString& ip, BitTorrent::TorrentHandle *const torrent, const BitTorrent::PeerInfo &peer)
|
QStandardItem* PeerListWidget::addPeer(const QString &ip, const BitTorrent::PeerInfo &peer)
|
||||||
{
|
{
|
||||||
int row = m_listModel->rowCount();
|
int row = m_listModel->rowCount();
|
||||||
// Adding Peer to peer list
|
// Adding Peer to peer list
|
||||||
@ -340,7 +340,7 @@ QStandardItem* PeerListWidget::addPeer(const QString& ip, BitTorrent::TorrentHan
|
|||||||
return m_listModel->item(row, PeerListDelegate::IP);
|
return m_listModel->item(row, PeerListDelegate::IP);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PeerListWidget::updatePeer(const QString &ip, BitTorrent::TorrentHandle *const torrent, const BitTorrent::PeerInfo &peer)
|
void PeerListWidget::updatePeer(const QString &ip, const BitTorrent::PeerInfo &peer)
|
||||||
{
|
{
|
||||||
QStandardItem *item = m_peerItems.value(ip);
|
QStandardItem *item = m_peerItems.value(ip);
|
||||||
int row = item->row();
|
int row = item->row();
|
||||||
|
@ -68,8 +68,8 @@ public:
|
|||||||
~PeerListWidget();
|
~PeerListWidget();
|
||||||
|
|
||||||
void loadPeers(BitTorrent::TorrentHandle *const torrent, bool forceHostnameResolution = false);
|
void loadPeers(BitTorrent::TorrentHandle *const torrent, bool forceHostnameResolution = false);
|
||||||
QStandardItem *addPeer(const QString &ip, BitTorrent::TorrentHandle *const torrent, const BitTorrent::PeerInfo &peer);
|
QStandardItem *addPeer(const QString &ip, const BitTorrent::PeerInfo &peer);
|
||||||
void updatePeer(const QString &ip, BitTorrent::TorrentHandle *const torrent, const BitTorrent::PeerInfo &peer);
|
void updatePeer(const QString &ip, const BitTorrent::PeerInfo &peer);
|
||||||
void handleResolved(const QString &ip, const QString &hostname);
|
void handleResolved(const QString &ip, const QString &hostname);
|
||||||
void updatePeerHostNameResolutionState();
|
void updatePeerHostNameResolutionState();
|
||||||
void updatePeerCountryResolutionState();
|
void updatePeerCountryResolutionState();
|
||||||
|
Loading…
Reference in New Issue
Block a user