]> git.tdb.fi Git - libs/gl.git/commitdiff
Remove redundant destructor declarations
authorMikko Rasa <tdb@tdb.fi>
Thu, 5 Jan 2023 18:47:48 +0000 (20:47 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 5 Jan 2023 18:47:48 +0000 (20:47 +0200)
Destructors are implicitly noexcept in C++11.

source/core/buffer.h
source/core/error.h
source/core/framebuffer.h
source/core/module.h
source/glsl/glsl_error.h
source/materials/programdata.h
source/resources/resourcemanager.h

index 37e042ec505f9e703d00c9e6e03f05e440ebbf3f..7dde1ac3d70dbcd3ad31783720e48762014c8e3e 100644 (file)
@@ -12,7 +12,6 @@ class MSPGL_API buffer_too_small: public std::logic_error
 {
 public:
        buffer_too_small(const std::string &w): std::logic_error(w) { }
-       virtual ~buffer_too_small() throw() { }
 };
 
 enum BufferUsage
index 230a2617b1032cb9ebd1fb1d728082e1c97d6a7f..9c6924c4ce16a26f5a3d1f8032dfec0d885187ca 100644 (file)
@@ -11,42 +11,36 @@ class MSPGL_API unsupported_extension: public std::runtime_error
 {
 public:
        unsupported_extension(const std::string &w): std::runtime_error(w) { }
-       virtual ~unsupported_extension() throw() { }
 };
 
 class MSPGL_API invalid_operation: public std::logic_error
 {
 public:
        invalid_operation(const std::string &w): std::logic_error(w) { }
-       virtual ~invalid_operation() throw() { }
 };
 
 class MSPGL_API stack_underflow: public std::logic_error
 {
 public:
        stack_underflow(const std::string &w): std::logic_error(w) { }
-       virtual ~stack_underflow() throw() { }
 };
 
 class MSPGL_API incompatible_data: public std::logic_error
 {
 public:
        incompatible_data(const std::string &w): std::logic_error(w) { }
-       virtual ~incompatible_data() throw() { }
 };
 
 class MSPGL_API compile_error: public std::runtime_error
 {
 public:
        compile_error(const std::string &w): std::runtime_error(w) { }
-       virtual ~compile_error() throw() { }
 };
 
 class MSPGL_API incomplete_uniform_block: public std::runtime_error
 {
 public:
        incomplete_uniform_block(const std::string &w): std::runtime_error(w) { }
-       virtual ~incomplete_uniform_block() throw() { }
 };
 
 } // namespace GL
index 1222b304ea811221388681f64e2faaefdf29fcc5..106161753736d241d8ced069a534609dd8279cba 100644 (file)
@@ -20,7 +20,6 @@ class MSPGL_API framebuffer_incomplete: public std::runtime_error
 {
 public:
        framebuffer_incomplete(const std::string &);
-       virtual ~framebuffer_incomplete() throw() { }
 };
 
 /**
index 994aaca462a490509287ce440d9a0a5651236a5d..3c11f9d4200bf5665780b01668ccccf1be26cc09 100644 (file)
@@ -17,7 +17,6 @@ class MSPGL_API invalid_module: public std::runtime_error
 {
 public:
        invalid_module(const std::string &w): runtime_error(w) { }
-       virtual ~invalid_module() throw() { }
 };
 
 class Resources;
index 0a271994299f22db6dacd16ea25f350db695cd49..bd6c4bb03120e3388ec7e1835120f102d1ccbbcb 100644 (file)
@@ -21,28 +21,24 @@ public:
                invalid_shader_source(loc, format(fmt, args...))
        { }
 #endif
-       virtual ~invalid_shader_source() throw() { }
 };
 
 class syntax_error: public invalid_shader_source
 {
 public:
        syntax_error(const Location &, const std::string &, const std::string &);
-       virtual ~syntax_error() throw() { }
 };
 
 class parse_error: public invalid_shader_source
 {
 public:
        parse_error(const Location &, const std::string &, const std::string &);
-       virtual ~parse_error() throw() { }
 };
 
 class internal_error: public std::logic_error
 {
 public:
        internal_error(const std::string &w): logic_error(w) { }
-       virtual ~internal_error() throw() { }
 };
 
 struct Diagnostic
index 3b45c5c038701822017e1cb5c341488df718e9f8..6b168efbae20bb7183924b4dec666fe543f7bed6 100644 (file)
@@ -18,7 +18,6 @@ class MSPGL_API too_many_uniforms: public std::runtime_error
 {
 public:
        too_many_uniforms(const std::string &w): std::runtime_error(w) { }
-       virtual ~too_many_uniforms() throw() { }
 };
 
 class Buffer;
index 04067da723f65ac9d811156d4877871a8b8c5216..893f76017d23d9fe4677dfe08de612365aa8dd7a 100644 (file)
@@ -21,7 +21,6 @@ class MSPGL_API resource_load_error: public std::runtime_error
 public:
        resource_load_error(const std::string &, const std::string &);
        resource_load_error(const std::string &, const std::exception &);
-       virtual ~resource_load_error() throw() { }
 };