From 0c3ea96541525c5e347f1072ac2659f010e2ec34 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 11 Oct 2001 18:41:21 -0300 Subject: no more copytagmethod function --- lbaselib.c | 5 ----- ltm.c | 14 -------------- lua.h | 4 +--- 3 files changed, 1 insertion(+), 22 deletions(-) diff --git a/lbaselib.c b/lbaselib.c index 8fe44d56..62695c04 100644 --- a/lbaselib.c +++ b/lbaselib.c @@ -198,10 +198,6 @@ static int luaB_newtype (lua_State *L) { return 1; } -static int luaB_copytagmethods (lua_State *L) { - lua_pushnumber(L, lua_copytagmethods(L, gettag(L, 1), gettag(L, 2))); - return 1; -} static int luaB_globals (lua_State *L) { lua_getglobals(L); /* value to be returned */ @@ -697,7 +693,6 @@ static const luaL_reg base_funcs[] = { {l_s(LUA_ERRORMESSAGE), luaB__ERRORMESSAGE}, {l_s("call"), luaB_call}, {l_s("collectgarbage"), luaB_collectgarbage}, - {l_s("copytagmethods"), luaB_copytagmethods}, {l_s("dofile"), luaB_dofile}, {l_s("dostring"), luaB_dostring}, {l_s("error"), luaB_error}, diff --git a/ltm.c b/ltm.c index 57c0df28..a58934fa 100644 --- a/ltm.c +++ b/ltm.c @@ -108,20 +108,6 @@ static void checktag (lua_State *L, int tag) { } -LUA_API int lua_copytagmethods (lua_State *L, int tagto, int tagfrom) { - int e; - lua_lock(L); - checktag(L, tagto); - checktag(L, tagfrom); - for (e=0; e