diff --git a/libtransmission/peer-common.h b/libtransmission/peer-common.h index 803fab817..7d3e9304d 100644 --- a/libtransmission/peer-common.h +++ b/libtransmission/peer-common.h @@ -205,8 +205,6 @@ public: [[nodiscard]] virtual tr_bitfield const& has() const noexcept = 0; - [[nodiscard]] virtual tr_bandwidth& bandwidth() noexcept = 0; - // requests that have been made but haven't been fulfilled yet [[nodiscard]] virtual size_t activeReqCount(tr_direction) const noexcept = 0; diff --git a/libtransmission/peer-msgs.cc b/libtransmission/peer-msgs.cc index ea375a164..31862ca55 100644 --- a/libtransmission/peer-msgs.cc +++ b/libtransmission/peer-msgs.cc @@ -409,11 +409,6 @@ public: } } - [[nodiscard]] tr_bandwidth& bandwidth() noexcept override - { - return io->bandwidth(); - } - [[nodiscard]] std::pair socketAddress() const override { return io->socket_address(); diff --git a/libtransmission/webseed.cc b/libtransmission/webseed.cc index 3b7d094fd..0c7d4a329 100644 --- a/libtransmission/webseed.cc +++ b/libtransmission/webseed.cc @@ -210,11 +210,6 @@ public: return is_active; } - [[nodiscard]] tr_bandwidth& bandwidth() noexcept override - { - return bandwidth_; - } - [[nodiscard]] TR_CONSTEXPR20 size_t activeReqCount(tr_direction dir) const noexcept override { if (dir == TR_CLIENT_TO_PEER) // blocks we've requested