mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
refactor: remove unused function tr_peer.bandwidth() (#5691)
This commit is contained in:
parent
22bb9e5757
commit
2f2ae61d0c
3 changed files with 0 additions and 12 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue