mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-06 15:42:32 -06:00
Use default operators generated/synthesized by compiler
This commit is contained in:
@@ -120,8 +120,3 @@ bool BitTorrent::operator==(const BitTorrent::InfoHash &left, const BitTorrent::
|
||||
{
|
||||
return (static_cast<InfoHash::WrappedType>(left) == static_cast<InfoHash::WrappedType>(right));
|
||||
}
|
||||
|
||||
bool BitTorrent::operator!=(const BitTorrent::InfoHash &left, const BitTorrent::InfoHash &right)
|
||||
{
|
||||
return !(left == right);
|
||||
}
|
||||
|
||||
@@ -90,7 +90,6 @@ namespace BitTorrent
|
||||
std::size_t qHash(const TorrentID &key, std::size_t seed = 0);
|
||||
|
||||
bool operator==(const InfoHash &left, const InfoHash &right);
|
||||
bool operator!=(const InfoHash &left, const InfoHash &right);
|
||||
}
|
||||
|
||||
Q_DECLARE_METATYPE(BitTorrent::TorrentID)
|
||||
|
||||
@@ -135,11 +135,6 @@ namespace BitTorrent
|
||||
return (left.uniqueID() == right.uniqueID());
|
||||
}
|
||||
|
||||
bool operator!=(const Peer &left, const Peer &right)
|
||||
{
|
||||
return !(left == right);
|
||||
}
|
||||
|
||||
std::size_t qHash(const Peer &key, const std::size_t seed)
|
||||
{
|
||||
return qHash(key.uniqueID(), seed);
|
||||
|
||||
@@ -64,7 +64,6 @@ namespace BitTorrent
|
||||
};
|
||||
|
||||
bool operator==(const Peer &left, const Peer &right);
|
||||
bool operator!=(const Peer &left, const Peer &right);
|
||||
std::size_t qHash(const Peer &key, std::size_t seed = 0);
|
||||
|
||||
// *Basic* Bittorrent tracker implementation
|
||||
|
||||
Reference in New Issue
Block a user