From 4c5d4a5ee4593b329b81702515c3a3db70a17e4c Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Sat, 30 Mar 2024 14:34:44 -0500 Subject: [PATCH] Remove file_error and duplicate nodiscard --- src/utils/common.hpp | 8 -------- src/utils/error.hpp | 5 ----- 2 files changed, 13 deletions(-) diff --git a/src/utils/common.hpp b/src/utils/common.hpp index 832a9d6..ad4c191 100644 --- a/src/utils/common.hpp +++ b/src/utils/common.hpp @@ -35,14 +35,6 @@ #error "Unsupported compiler" #endif -#if IS_GCC || IS_CLANG - #define NODISCARD __attribute__((warn_unused_result)) -// #elif IS_MSVC && _MSC_VER >= 1700 -// #define NODISCARD _Check_return_ -#else - #define NODISCARD -#endif - #include #include #include diff --git a/src/utils/error.hpp b/src/utils/error.hpp index b0f55d0..241daf7 100644 --- a/src/utils/error.hpp +++ b/src/utils/error.hpp @@ -28,11 +28,6 @@ namespace detail { } }; - class file_error : public internal_error { - public: - file_error(std::string path) : internal_error("Unable to read file " + std::move(path)) {} - }; - // Lightweight std::source_location. struct source_location { const char* const file;