From 90356ee669dae1f1133428efb83838fa25c5539e Mon Sep 17 00:00:00 2001 From: Rangi42 Date: Thu, 7 Mar 2024 15:07:16 -0500 Subject: [PATCH] Remove unused `#define` --- src/gfx/pal_spec.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/gfx/pal_spec.cpp b/src/gfx/pal_spec.cpp index 7ba764ba..abeeb6cf 100644 --- a/src/gfx/pal_spec.cpp +++ b/src/gfx/pal_spec.cpp @@ -187,11 +187,6 @@ static bool readMagic(std::filebuf &file, char const *magic) { 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(file, magic) // Don't count the terminator - template static T readBE(U const *bytes) { T val = 0;