From: Christophe ThiƩry Date: Wed, 9 Nov 2011 17:57:57 +0000 (+0100) Subject: Nice joke. X-Git-Tag: exp_20120216~380 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/8b30afd41e2c22586e92ecbbfe124403fc861dd6?ds=sidebyside Nice joke. --- 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} };