Skip to content

Commit

Permalink
feat: remove Error::Error() constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
threeal committed Dec 26, 2023
1 parent 75283c3 commit e6c4784
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions include/errors/error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ class Error {
Error(const std::shared_ptr<const std::string>& message_ptr);

public:

/**
* @brief Constructs an empty error object.
*/
Error();

/**
* @brief Returns the error message.
*
Expand Down
2 changes: 0 additions & 2 deletions src/error.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ namespace errors {

Error::Error(const std::shared_ptr<const std::string>& message_ptr) : message_ptr(message_ptr) {}

Error::Error() {}

std::string_view Error::message() const {
if (!message_ptr) return "no error";
return *message_ptr;
Expand Down

0 comments on commit e6c4784

Please # to comment.