refactor: remove unused function tr_peer.bandwidth() (#5691)

This commit is contained in:
Charles Kerr 2023-06-29 11:14:05 -05:00 committed by GitHub
parent 22bb9e5757
commit 2f2ae61d0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 12 deletions

View File

@ -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;

View File

@ -409,11 +409,6 @@ public:
}
}
[[nodiscard]] tr_bandwidth& bandwidth() noexcept override
{
return io->bandwidth();
}
[[nodiscard]] std::pair<tr_address, tr_port> socketAddress() const override
{
return io->socket_address();

View File

@ -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