mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Remove unused #define
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user