From 4978e95b9ae9c5b113617b2a1f29fe5f1f638bbc Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 3 Aug 2018 06:52:37 +0200 Subject: [PATCH] delete leftover npc callbacks. --- src/bind_unit.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/bind_unit.c b/src/bind_unit.c index c6b045d33..fddcd5608 100644 --- a/src/bind_unit.c +++ b/src/bind_unit.c @@ -455,19 +455,6 @@ int fctr_handle(struct trigger *tp, void *data) return 0; } -static void fctr_init(trigger * t) -{ - t->data.v = calloc(sizeof(fctr_data), 1); -} - -static void fctr_done(trigger * t) -{ - fctr_data *fd = (fctr_data *)t->data.v; - lua_State *L = (lua_State *)global.vm_state; - luaL_unref(L, LUA_REGISTRYINDEX, fd->fhandle); - free(fd); -} - static int tolua_unit_addnotice(lua_State * L) { unit *self = (unit *)tolua_tousertype(L, 1, 0);