remove get_nodedef
authorPerttu Ahola <celeron55@gmail.com>
Sat, 26 Nov 2011 01:22:54 +0000 (03:22 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 29 Nov 2011 17:13:53 +0000 (19:13 +0200)
src/scriptapi.cpp

index fd9d10195d78e38ec1c77ae8c0da4b2b94831269..03bdd3a7d30d23d121ebc6b7d86e41004dbcb31b 100644 (file)
@@ -789,12 +789,6 @@ static int l_register_craft(lua_State *L)
        return 0; /* number of results */
 }
 
-// get_nodedef(name)
-static int l_get_nodedef(lua_State *L)
-{
-       return 1;
-}
-
 static int register_lua_callback(lua_State *L, const char *tablename)
 {
        luaL_checktype(L, 1, LUA_TFUNCTION);
@@ -873,7 +867,6 @@ static const struct luaL_Reg minetest_f [] = {
        {"register_on_punchnode", l_register_on_punchnode},
        {"register_on_newplayer", l_register_on_newplayer},
        {"register_on_respawnplayer", l_register_on_respawnplayer},
-       {"get_nodedef", l_get_nodedef},
        {NULL, NULL}
 };