From: Mikko Rasa Date: Tue, 3 Jan 2023 09:07:07 +0000 (+0200) Subject: Remove unnecessary destructor declarations X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=767eef43221f871240e78035158b38b0447c20e6;p=libs%2Fdatafile.git Remove unnecessary destructor declarations Noexcept is the default since C++11. --- diff --git a/source/except.h b/source/except.h index 533072e..3ae8346 100644 --- a/source/except.h +++ b/source/except.h @@ -19,7 +19,6 @@ public: data_error(const std::string &, unsigned, const std::string &); data_error(const std::string &, unsigned, const std::exception &); data_error(const std::string &, unsigned, const data_error &); - ~data_error() throw() override = default; const std::string &get_source() const { return source; } unsigned get_line() const { return line; } @@ -33,7 +32,6 @@ class MSPDATAFILE_API parse_error: public std::runtime_error { public: parse_error(const std::string &); - ~parse_error() throw() override = default; }; @@ -41,7 +39,6 @@ class MSPDATAFILE_API syntax_error: public std::runtime_error { public: syntax_error(const std::string &t); - ~syntax_error() throw() override = default; }; @@ -49,7 +46,6 @@ class MSPDATAFILE_API bad_definition: public std::runtime_error { public: bad_definition(const std::string &w); - ~bad_definition() throw() override = default; }; @@ -57,7 +53,6 @@ class MSPDATAFILE_API nesting_error: public std::logic_error { public: nesting_error(const std::string &); - ~nesting_error() throw() override = default; }; @@ -65,7 +60,6 @@ class MSPDATAFILE_API unknown_keyword: public std::runtime_error { public: unknown_keyword(const std::string &); - ~unknown_keyword() throw() override = default; }; @@ -73,7 +67,6 @@ class MSPDATAFILE_API invalid_signature: public std::runtime_error { public: invalid_signature(const std::string &, const std::string &); - ~invalid_signature() throw() override = default; };