From a60bdfca222d99631d11a576a6b8ac8af02b0898 Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Thu, 21 Jan 2016 11:59:26 +0100 Subject: [PATCH] [LUA] Removed another outdated lua function --- src/bindings/lua/lua_host.c | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/bindings/lua/lua_host.c b/src/bindings/lua/lua_host.c index 11c70ef05f..af669e75d9 100644 --- a/src/bindings/lua/lua_host.c +++ b/src/bindings/lua/lua_host.c @@ -118,31 +118,6 @@ static int l_host_at(lua_State * L) return 1; } -/** - * \brief Returns the host where the current process is located. - * \param L a Lua state - * \return number of values returned to Lua - * - * - Return value (host): the current host - */ -static int l_host_self(lua_State * L) -{ - /* -- */ - msg_host_t host = MSG_host_self(); - lua_newtable(L); - /* table */ - msg_host_t* lua_host = (msg_host_t*) lua_newuserdata(L, sizeof(msg_host_t)); - /* table ud */ - *lua_host = host; - luaL_getmetatable(L, HOST_MODULE_NAME); - /* table ud mt */ - lua_setmetatable(L, -2); - /* table ud */ - lua_setfield(L, -2, "__simgrid_host"); - /* table */ - return 1; -} - /** * \brief Returns the value of a host property. * \param L a Lua state @@ -179,7 +154,6 @@ static const luaL_Reg host_functions[] = { {"name", l_host_get_name}, {"number", l_host_number}, {"at", l_host_at}, - {"self", l_host_self}, {"get_prop_value", l_host_get_property_value}, {"destroy", l_host_destroy}, // Bypass XML Methods -- 2.20.1