From e6c4784c68c1a065b901dee0b8c455794d277ad6 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Tue, 26 Dec 2023 22:43:45 +0700 Subject: [PATCH] feat: remove `Error::Error()` constructor --- include/errors/error.hpp | 6 ------ src/error.cpp | 2 -- 2 files changed, 8 deletions(-) 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;