From 8b30afd41e2c22586e92ecbbfe124403fc861dd6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christophe=20Thi=C3=A9ry?= Date: Wed, 9 Nov 2011 18:57:57 +0100 Subject: [PATCH] Nice joke. --- src/bindings/lua/simgrid_lua.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/bindings/lua/simgrid_lua.c b/src/bindings/lua/simgrid_lua.c index 268323225f..76a482e76e 100644 --- a/src/bindings/lua/simgrid_lua.c +++ b/src/bindings/lua/simgrid_lua.c @@ -455,14 +455,6 @@ static const luaL_reg host_functions[] = { {NULL, NULL} }; -static int l_host_gc(lua_State * L) -{ - m_host_t ht = sglua_checkhost(L, -1); - if (ht) - ht = NULL; - return 0; -} - static int l_host_tostring(lua_State * L) { lua_pushfstring(L, "Host :%p", lua_touserdata(L, 1)); @@ -470,7 +462,6 @@ static int l_host_tostring(lua_State * L) } static const luaL_reg host_meta[] = { - {"__gc", l_host_gc}, {"__tostring", l_host_tostring}, {0, 0} }; -- 2.20.1