From 2f2ae61d0ce0b4c2585a6fe602c509d44a4c4782 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 29 Jun 2023 11:14:05 -0500 Subject: [PATCH] refactor: remove unused function tr_peer.bandwidth() (#5691) --- libtransmission/peer-common.h | 2 -- libtransmission/peer-msgs.cc | 5 ----- libtransmission/webseed.cc | 5 ----- 3 files changed, 12 deletions(-) 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