refactor: remove unnecessary default destructors (#3740)

This commit is contained in:
Charles Kerr
2022-08-30 14:31:40 -05:00
committed by GitHub
parent b7ea4d9f04
commit b989b72c0f
6 changed files with 0 additions and 10 deletions

View File

@@ -37,8 +37,6 @@ public:
{ {
} }
virtual ~tr_peerMsgs() override = default;
[[nodiscard]] virtual bool is_peer_choked() const noexcept = 0; [[nodiscard]] virtual bool is_peer_choked() const noexcept = 0;
[[nodiscard]] virtual bool is_peer_interested() const noexcept = 0; [[nodiscard]] virtual bool is_peer_interested() const noexcept = 0;
[[nodiscard]] virtual bool is_client_choked() const noexcept = 0; [[nodiscard]] virtual bool is_client_choked() const noexcept = 0;

View File

@@ -831,7 +831,6 @@ private:
: session_{ session } : session_{ session }
{ {
} }
~WebMediator() override = default;
[[nodiscard]] std::optional<std::string> cookieFile() const override; [[nodiscard]] std::optional<std::string> cookieFile() const override;
[[nodiscard]] std::optional<std::string> publicAddressV4() const override; [[nodiscard]] std::optional<std::string> publicAddressV4() const override;
@@ -855,7 +854,6 @@ private:
: session_{ session } : session_{ session }
{ {
} }
~LpdMediator() override = default;
[[nodiscard]] tr_port port() const override [[nodiscard]] tr_port port() const override
{ {

View File

@@ -25,8 +25,6 @@ public:
{ {
} }
~EvTimerMaker() override = default;
[[nodiscard]] std::unique_ptr<Timer> create() override; [[nodiscard]] std::unique_ptr<Timer> create() override;
private: private:

View File

@@ -93,8 +93,6 @@ public:
{ {
} }
~tr_torrent() override = default;
void setLocation( void setLocation(
std::string_view location, std::string_view location,
bool move_from_old_path, bool move_from_old_path,

View File

@@ -33,7 +33,6 @@ public:
ensure_sz(); ensure_sz();
} }
~tr_strbuf() = default;
tr_strbuf(tr_strbuf const& other) = delete; tr_strbuf(tr_strbuf const& other) = delete;
tr_strbuf& operator=(tr_strbuf const& other) = delete; tr_strbuf& operator=(tr_strbuf const& other) = delete;

View File

@@ -33,7 +33,6 @@ public:
retry_timer_->setCallback([this]() { onRetryTimer(); }); retry_timer_->setCallback([this]() { onRetryTimer(); });
} }
~BaseWatchdir() override = default;
BaseWatchdir(BaseWatchdir&&) = delete; BaseWatchdir(BaseWatchdir&&) = delete;
BaseWatchdir(BaseWatchdir const&) = delete; BaseWatchdir(BaseWatchdir const&) = delete;
BaseWatchdir& operator=(BaseWatchdir&&) = delete; BaseWatchdir& operator=(BaseWatchdir&&) = delete;