From f21e9c172f9f15d8d7501e35635e78dc11f5ff58 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 20 May 2005 12:53:42 -0300 Subject: details --- lbaselib.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'lbaselib.c') diff --git a/lbaselib.c b/lbaselib.c index 8a42f1ca..1fea255f 100644 --- a/lbaselib.c +++ b/lbaselib.c @@ -1,5 +1,5 @@ /* -** $Id: lbaselib.c,v 1.175 2005/05/16 21:19:00 roberto Exp roberto $ +** $Id: lbaselib.c,v 1.176 2005/05/17 19:49:15 roberto Exp roberto $ ** Basic library ** See Copyright Notice in lua.h */ @@ -331,13 +331,6 @@ static int luaB_assert (lua_State *L) { } -static int luaB_getn (lua_State *L) { - luaL_checktype(L, 1, LUA_TTABLE); - lua_pushinteger(L, lua_objsize(L, 1)); - return 1; -} - - static int luaB_unpack (lua_State *L) { int i = luaL_optint(L, 2, 1); int e = luaL_optint(L, 3, -1); @@ -454,7 +447,6 @@ static const luaL_reg base_funcs[] = { {"tostring", luaB_tostring}, {"type", luaB_type}, {"assert", luaB_assert}, - {"getn", luaB_getn}, {"unpack", luaB_unpack}, {"select", luaB_select}, {"rawequal", luaB_rawequal}, -- cgit v1.2.3-55-g6feb