remove unused nbt_primsize function

This commit is contained in:
2025-08-19 11:14:38 +02:00
parent c15046e017
commit e4b90246c5

View File

@@ -9,19 +9,6 @@
#include "../util/compat/endian.h" #include "../util/compat/endian.h"
#include "../util/intdef.h" #include "../util/intdef.h"
// WARN: does not have public-facing definition
int nbt_primsize(u8 tag) {
switch (tag) {
case NBT_I8: return 1;
case NBT_I16: return 2;
case NBT_I32: // fall through
case NBT_F32: return 4;
case NBT_I64: // fall through
case NBT_F64: return 8;
default: return -1;
}
}
const u8 *nbt_nexttag(const u8 *restrict buf) { const u8 *nbt_nexttag(const u8 *restrict buf) {
const u8 *tag, *ptr, *tmp; const u8 *tag, *ptr, *tmp;
tag = buf; tag = buf;