remove it_register, because it does nothing.

This commit is contained in:
Enno Rehling 2017-09-18 17:20:58 +02:00
parent 1f65932794
commit 69079ce319
1 changed files with 0 additions and 11 deletions

View File

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