Remove unused #define

This commit is contained in:
Rangi42
2024-03-07 15:07:16 -05:00
parent 0a4a01c5e5
commit 90356ee669

View File

@@ -187,11 +187,6 @@ static bool readMagic(std::filebuf &file, char const *magic) {
return file.sgetn(magicBuf, n) == n && memcmp(magicBuf, magic, n); return file.sgetn(magicBuf, n) == n && memcmp(magicBuf, magic, n);
} }
// Like `readMagic`, but automatically determines the size from the string literal's length.
// Don't worry if you make a mistake, an `assert`'s got your back!
#define READ_MAGIC(file, magic) \
readMagic<sizeof(magic) - 1>(file, magic) // Don't count the terminator
template<typename T, typename U> template<typename T, typename U>
static T readBE(U const *bytes) { static T readBE(U const *bytes) {
T val = 0; T val = 0;