From e4b90246c58eb91258ec2e5982bab66636be31c9 Mon Sep 17 00:00:00 2001 From: Quinn Date: Tue, 19 Aug 2025 11:14:38 +0200 Subject: [PATCH] remove unused `nbt_primsize` function --- src/dat/nbt.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/dat/nbt.c b/src/dat/nbt.c index d16cb22..b55f122 100644 --- a/src/dat/nbt.c +++ b/src/dat/nbt.c @@ -9,19 +9,6 @@ #include "../util/compat/endian.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 *tag, *ptr, *tmp; tag = buf;