diff --git a/src/dat/nbt.c b/src/dat/nbt.c index db52bca..e7f5436 100644 --- a/src/dat/nbt.c +++ b/src/dat/nbt.c @@ -7,20 +7,6 @@ #include "../util/compat/endian.h" #include "../util/types.h" -int nbt_isprim(u8 tag) { - switch (tag) { - case NBT_I8: - case NBT_I16: - case NBT_I32: - case NBT_F32: - case NBT_I64: - case NBT_F64: - return 1; - default: - return 0; - } -} - int nbt_primsize(u8 tag) { switch (tag) { case NBT_I8: return 1; diff --git a/src/dat/nbt.h b/src/dat/nbt.h index 1e76614..5959ced 100644 --- a/src/dat/nbt.h +++ b/src/dat/nbt.h @@ -65,10 +65,6 @@ atrb_pure atrb_nonnull(1) static inline u16 nbt_namelen(const u8 *restrict buf) * `NULL` is returned if anything went wrong. */ atrb_pure atrb_nonnull(1) const u8 *nbt_nexttag(const u8 *restrict buf, u16 naml); -/* checks whether the tag is a primitive data tag. (not recommended for filtering tags, use a `switch`) - * returns a boolean value. */ -atrb_const int nbt_isprim(u8 tag); - /* gets the tag size of primitive types, returns `>0` on success, `<0` on failure */ atrb_const int nbt_primsize(u8 tag);