From 39f91e9db08a54b8c87c8f835079427725518fe7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christophe=20Thi=C3=A9ry?= Date: Tue, 4 Oct 2011 17:35:16 +0200 Subject: [PATCH 1/1] Remove an obsolete function --- src/bindings/lua/lua_state_cloner.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/bindings/lua/lua_state_cloner.c b/src/bindings/lua/lua_state_cloner.c index bd694ab798..e5789ec625 100644 --- a/src/bindings/lua/lua_state_cloner.c +++ b/src/bindings/lua/lua_state_cloner.c @@ -30,24 +30,6 @@ static void sglua_copy_lightuserdata(lua_State* src, lua_State* dst); static void sglua_copy_userdata(lua_State* src, lua_State* dst); static void sglua_copy_thread(lua_State* src, lua_State* dst); -/** - * @brief Returns the father of a state, i.e. the state that created it. - * @param L a Lua state - * @return its father, or NULL if the state was not created by sglua_clone_state() - */ -static lua_State* sglua_get_father(lua_State* L) { - - /* ... */ - lua_pushstring(L, "simgrid.father"); - /* ... "simgrid.father" */ - lua_rawget(L, LUA_REGISTRYINDEX); - /* ... father */ - lua_State* father = lua_touserdata(L, -1); - lua_pop(L, 1); - /* ... */ - return father; -} - /** * @brief Adds a reference to a maestro table to the list of known maestro * tables of a state. @@ -387,7 +369,7 @@ static void sglua_copy_table(lua_State* src, lua_State* dst) { * @brief Copies the function on the top of src to the top of dst. * * It can be a Lua function or a C function. - * Copying upvalues is not implemented yet (TODO). + * Copying upvalues is not implemented yet. * * @param src source state * @param dst destination state -- 2.20.1