diff --git a/include/errors/error.hpp b/include/errors/error.hpp index 4b58ed5..b1212fa 100644 --- a/include/errors/error.hpp +++ b/include/errors/error.hpp @@ -18,12 +18,6 @@ class Error { Error(const std::shared_ptr& message_ptr); public: - - /** - * @brief Constructs an empty error object. - */ - Error(); - /** * @brief Returns the error message. * diff --git a/src/error.cpp b/src/error.cpp index 5003c86..f702810 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -4,8 +4,6 @@ namespace errors { Error::Error(const std::shared_ptr& message_ptr) : message_ptr(message_ptr) {} -Error::Error() {} - std::string_view Error::message() const { if (!message_ptr) return "no error"; return *message_ptr;