From 6df110603b3a1248f52741e9d68d0bd032171b60 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 9 Dec 2022 20:18:12 +0200 Subject: [PATCH] Remove unnecessary destructors from exception classes --- source/http/client.h | 1 - source/net/communicator.h | 2 -- source/net/protocol.h | 2 -- source/net/socket.h | 1 - 4 files changed, 6 deletions(-) diff --git a/source/http/client.h b/source/http/client.h index ebb7321..d617ffe 100644 --- a/source/http/client.h +++ b/source/http/client.h @@ -14,7 +14,6 @@ class client_busy: public std::logic_error { public: client_busy(): std::logic_error(std::string()) { } - virtual ~client_busy() throw() { } }; class Request; diff --git a/source/net/communicator.h b/source/net/communicator.h index e4869b2..62521ee 100644 --- a/source/net/communicator.h +++ b/source/net/communicator.h @@ -13,14 +13,12 @@ class sequence_error: public std::logic_error { public: sequence_error(const std::string &w): std::logic_error(w) { } - virtual ~sequence_error() throw() { } }; class incompatible_protocol: public std::runtime_error { public: incompatible_protocol(const std::string &w): std::runtime_error(w) { } - virtual ~incompatible_protocol() throw() { } }; diff --git a/source/net/protocol.h b/source/net/protocol.h index 3457a9d..fa90e6d 100644 --- a/source/net/protocol.h +++ b/source/net/protocol.h @@ -14,7 +14,6 @@ class bad_packet: public std::runtime_error { public: bad_packet(const std::string &w): std::runtime_error(w) { } - virtual ~bad_packet() throw() { } }; @@ -22,7 +21,6 @@ class buffer_error: public std::runtime_error { public: buffer_error(const std::string &w): std::runtime_error(w) { } - virtual ~buffer_error() throw() { } }; diff --git a/source/net/socket.h b/source/net/socket.h index bca58fa..a3823ee 100644 --- a/source/net/socket.h +++ b/source/net/socket.h @@ -13,7 +13,6 @@ class bad_socket_state: public std::logic_error { public: bad_socket_state(const std::string &w): std::logic_error(w) { } - virtual ~bad_socket_state() throw() { } }; -- 2.45.2