]> git.tdb.fi Git - libs/net.git/commitdiff
Remove unnecessary destructors from exception classes
authorMikko Rasa <tdb@tdb.fi>
Fri, 9 Dec 2022 18:18:12 +0000 (20:18 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 9 Dec 2022 18:18:12 +0000 (20:18 +0200)
source/http/client.h
source/net/communicator.h
source/net/protocol.h
source/net/socket.h

index ebb73216a4eacfbbdfce4cc511e86f1e771395ef..d617ffed6c06e023daff3fe0e2ca2c20ef2e1c1c 100644 (file)
@@ -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;
index e4869b29015ef0cf5146e0bea983506f3c569e4b..62521ee8926346fed24dabccc9a7af3189efff39 100644 (file)
@@ -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() { }
 };
 
 
index 3457a9d7288cf47b915d1e4249cecbc6db3f9c55..fa90e6d250d87531fdc01069a90fe0cab6a90352 100644 (file)
@@ -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() { }
 };
 
 
index bca58fad4d98d191b7aed753ac88eff493ca3359..a3823ee44d777d008a3454ee0d76e4d90cac7d42 100644 (file)
@@ -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() { }
 };