diff --git a/src/bindings/bind_building.c b/src/bindings/bind_building.c index a177b1975..eecde8fbb 100644 --- a/src/bindings/bind_building.c +++ b/src/bindings/bind_building.c @@ -223,7 +223,6 @@ tolua_building_open(lua_State* L) { /* register user types */ tolua_usertype(L, TOLUA_CAST "building"); - tolua_usertype(L, TOLUA_CAST "building_list"); tolua_module(L, NULL, 0); tolua_beginmodule(L, NULL); diff --git a/src/kernel/building.c b/src/kernel/building.c index 0ab58de70..509cb6d1a 100644 --- a/src/kernel/building.c +++ b/src/kernel/building.c @@ -429,27 +429,6 @@ read_building_reference(struct storage * store) return result; } -void -free_buildinglist(building_list *blist) -{ - while (blist) { - building_list * rl2 = blist->next; - free(blist); - blist = rl2; - } -} - -void -add_buildinglist(building_list **blist, building *b) -{ - building_list *rl2 = (building_list*)malloc(sizeof(building_list)); - - rl2->data = b; - rl2->next = *blist; - - *blist = rl2; -} - building * new_building(const struct building_type * btype, region * r, const struct locale * lang) { diff --git a/src/kernel/building.h b/src/kernel/building.h index 7aea49bd1..08ede08bb 100644 --- a/src/kernel/building.h +++ b/src/kernel/building.h @@ -110,14 +110,6 @@ typedef struct building { unsigned int flags; } building; -typedef struct building_list { - struct building_list * next; - building * data; -} building_list; - -extern void free_buildinglist(building_list *bl); -extern void add_buildinglist(building_list **bl, struct building *b); - extern struct attrib_type at_building_generic_type; extern const char * buildingtype(const building_type * btype, const struct building * b, int bsize); extern const char * write_buildingname(const building * b, char * ibuf, size_t size);