Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Nice joke.
authorChristophe Thiéry <christopho128@gmail.com>
Wed, 9 Nov 2011 17:57:57 +0000 (18:57 +0100)
committerChristophe Thiéry <christopho128@gmail.com>
Wed, 9 Nov 2011 18:05:00 +0000 (19:05 +0100)
src/bindings/lua/simgrid_lua.c

index 2683232..76a482e 100644 (file)
@@ -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}
 };