mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-04 14:42:29 -06:00
Remove DISABLE_COUNTRIES_RESOLUTION define
This commit is contained in:
@@ -59,14 +59,12 @@ bool PeerInfo::fromLSD() const
|
||||
return static_cast<bool>(m_nativeInfo.source & lt::peer_info::lsd);
|
||||
}
|
||||
|
||||
#ifndef DISABLE_COUNTRIES_RESOLUTION
|
||||
QString PeerInfo::country() const
|
||||
{
|
||||
if (m_country.isEmpty())
|
||||
m_country = Net::GeoIPManager::instance()->lookup(address().ip);
|
||||
return m_country;
|
||||
}
|
||||
#endif
|
||||
|
||||
bool PeerInfo::isInteresting() const
|
||||
{
|
||||
|
||||
@@ -89,9 +89,7 @@ namespace BitTorrent
|
||||
qreal relevance() const;
|
||||
QString flags() const;
|
||||
QString flagsDescription() const;
|
||||
#ifndef DISABLE_COUNTRIES_RESOLUTION
|
||||
QString country() const;
|
||||
#endif
|
||||
int downloadingPieceIndex() const;
|
||||
|
||||
private:
|
||||
@@ -103,9 +101,7 @@ namespace BitTorrent
|
||||
QString m_flags;
|
||||
QString m_flagsDescription;
|
||||
|
||||
#ifndef DISABLE_COUNTRIES_RESOLUTION
|
||||
mutable QString m_country;
|
||||
#endif
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user