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;