forked from github/server
remove it_register, because it does nothing.
This commit is contained in:
parent
1f65932794
commit
69079ce319
1 changed files with 0 additions and 11 deletions
|
@ -192,16 +192,6 @@ resource_type *rt_get_or_create(const char *name) {
|
||||||
return rtype;
|
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] = {
|
static const char *it_aliases[][2] = {
|
||||||
{ "Runenschwert", "runesword" },
|
{ "Runenschwert", "runesword" },
|
||||||
{ "p12", "truthpotion" },
|
{ "p12", "truthpotion" },
|
||||||
|
@ -244,7 +234,6 @@ item_type *it_get_or_create(resource_type *rtype) {
|
||||||
rtype->uchange = res_changeitem;
|
rtype->uchange = res_changeitem;
|
||||||
rtype->itype = itype;
|
rtype->itype = itype;
|
||||||
rtype->flags |= RTF_ITEM;
|
rtype->flags |= RTF_ITEM;
|
||||||
it_register(itype);
|
|
||||||
return itype;
|
return itype;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue