mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
refactor: remove unnecessary default destructors (#3740)
This commit is contained in:
@@ -37,8 +37,6 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual ~tr_peerMsgs() override = default;
|
||||
|
||||
[[nodiscard]] virtual bool is_peer_choked() const noexcept = 0;
|
||||
[[nodiscard]] virtual bool is_peer_interested() const noexcept = 0;
|
||||
[[nodiscard]] virtual bool is_client_choked() const noexcept = 0;
|
||||
|
||||
@@ -831,7 +831,6 @@ private:
|
||||
: session_{ session }
|
||||
{
|
||||
}
|
||||
~WebMediator() override = default;
|
||||
|
||||
[[nodiscard]] std::optional<std::string> cookieFile() const override;
|
||||
[[nodiscard]] std::optional<std::string> publicAddressV4() const override;
|
||||
@@ -855,7 +854,6 @@ private:
|
||||
: session_{ session }
|
||||
{
|
||||
}
|
||||
~LpdMediator() override = default;
|
||||
|
||||
[[nodiscard]] tr_port port() const override
|
||||
{
|
||||
|
||||
@@ -25,8 +25,6 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~EvTimerMaker() override = default;
|
||||
|
||||
[[nodiscard]] std::unique_ptr<Timer> create() override;
|
||||
|
||||
private:
|
||||
|
||||
@@ -93,8 +93,6 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
~tr_torrent() override = default;
|
||||
|
||||
void setLocation(
|
||||
std::string_view location,
|
||||
bool move_from_old_path,
|
||||
|
||||
@@ -33,7 +33,6 @@ public:
|
||||
ensure_sz();
|
||||
}
|
||||
|
||||
~tr_strbuf() = default;
|
||||
tr_strbuf(tr_strbuf const& other) = delete;
|
||||
tr_strbuf& operator=(tr_strbuf const& other) = delete;
|
||||
|
||||
|
||||
@@ -33,7 +33,6 @@ public:
|
||||
retry_timer_->setCallback([this]() { onRetryTimer(); });
|
||||
}
|
||||
|
||||
~BaseWatchdir() override = default;
|
||||
BaseWatchdir(BaseWatchdir&&) = delete;
|
||||
BaseWatchdir(BaseWatchdir const&) = delete;
|
||||
BaseWatchdir& operator=(BaseWatchdir&&) = delete;
|
||||
|
||||
Reference in New Issue
Block a user