lua-utils: can't call mrp_lua_get_lua_state, pulls in core. v0.0.39
authorKrisztian Litkey <kli@iki.fi>
Fri, 22 Nov 2013 14:20:18 +0000 (16:20 +0200)
committerKrisztian Litkey <kli@iki.fi>
Fri, 22 Nov 2013 14:36:26 +0000 (16:36 +0200)
src/core/lua-utils/object.c

index 46438a9..d995082 100644 (file)
@@ -2454,22 +2454,6 @@ void mrp_lua_dump_objects(mrp_lua_tostr_mode_t mode, lua_State *L, FILE *fp)
 }
 
 
-static void MRP_EXIT cleanup_check(void)
-{
-    lua_State *L;
-
-    if ((L = mrp_lua_get_lua_state()) == NULL) {
-        mrp_log_error("Failed to get Lua state, can't dump objects.");
-        return;
-    }
-
-    if (cfg.track) {
-        lua_gc(L, LUA_GCCOLLECT, 0);
-        mrp_lua_dump_objects(MRP_LUA_TOSTR_CHECKDUMP, L, stdout);
-    }
-}
-
-
 /*
  * Local Variables:
  * c-basic-offset: 4