Remove file_error and duplicate nodiscard

This commit is contained in:
Jeremy 2024-03-30 14:34:44 -05:00
parent 530954e69f
commit 4c5d4a5ee4
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4
2 changed files with 0 additions and 13 deletions

View File

@ -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 <cstdio>
#include <stdexcept>
#include <string>

View File

@ -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;