remove nbt_isprim function, because it never really served any purpose.'

This commit is contained in:
2025-08-07 12:08:48 +02:00
parent 1052dcaac9
commit 066e1c0049
2 changed files with 0 additions and 18 deletions

View File

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

View File

@@ -44,10 +44,6 @@ struct nbt_path {
/* gets the tag size of primitive types, returns `>0` on success, `<0` on failure */
CONST int nbt_primsize(u8 tag);
/* checks whether the tag is a primitive data tag. (not recommended for filtering tags, use a `switch`)
* returns a boolean value. */
CONST int nbt_isprim(u8 tag);
/* searches for the end of a compound tag without processing data, the final pointer is returned.
* `NULL` is returned upon failure, the otherwise returned pointer is not guaranteed to be valid.
* `cdat` is assumed to be the start of the **compound tag's data**. */