From 69079ce319da71321874cd5bfe2b598e752fdcb2 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 18 Sep 2017 17:20:58 +0200 Subject: [PATCH] remove it_register, because it does nothing. --- src/kernel/item.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/kernel/item.c b/src/kernel/item.c index 8639ac5d1..81a0c78cb 100644 --- a/src/kernel/item.c +++ b/src/kernel/item.c @@ -192,16 +192,6 @@ resource_type *rt_get_or_create(const char *name) { return rtype; } -static void it_register(item_type * itype) -{ - char buffer[64]; - const char * name = itype->rtype->_name; - size_t len = strlen(name); - - assert(len < sizeof(buffer) - sizeof(itype)); - len = cb_new_kv(name, len, &itype, sizeof(itype), buffer); -} - static const char *it_aliases[][2] = { { "Runenschwert", "runesword" }, { "p12", "truthpotion" }, @@ -244,7 +234,6 @@ item_type *it_get_or_create(resource_type *rtype) { rtype->uchange = res_changeitem; rtype->itype = itype; rtype->flags |= RTF_ITEM; - it_register(itype); return itype; }