From 12661fc373784a836ec6119cb719f46bdd8367c9 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 29 Jun 2014 19:09:37 -0700 Subject: [PATCH] new_itemtype has been replaced, delete it. --- src/kernel/item.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/kernel/item.c b/src/kernel/item.c index 92edcaa88..815ef0a2d 100644 --- a/src/kernel/item.c +++ b/src/kernel/item.c @@ -230,29 +230,6 @@ item_type *it_get_or_create(resource_type *rtype) { return itype; } -item_type *new_itemtype(resource_type * rtype, - int iflags, int weight, int capacity) -{ - item_type *itype; - - assert(!rtype->itype); - assert(!rtype->uchange || rtype->uchange==res_changeitem); - - itype = calloc(sizeof(item_type), 1); - - itype->rtype = rtype; - itype->weight = weight; - itype->capacity = capacity; - itype->flags |= iflags; - it_register(itype); - - rtype->itype = itype; - rtype->flags |= RTF_ITEM; - rtype->uchange = res_changeitem; - - return itype; -} - static void lt_register(luxury_type * ltype) { ltype->itype->rtype->ltype = ltype;