commit 3cb343efd644fb771b6d8193406afd49527dc1ec
parent ec0fc1a13bf6082659efeedbdf50b5cc1e69da3d
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Fri, 18 Dec 2009 14:52:48 -0200
code for error message for 'setn' removed
Diffstat:
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/ltablib.c b/ltablib.c
@@ -1,5 +1,5 @@
/*
-** $Id: ltablib.c,v 1.50 2009/12/07 15:50:27 roberto Exp roberto $
+** $Id: ltablib.c,v 1.51 2009/12/17 16:20:01 roberto Exp roberto $
** Library for Table Manipulation
** See Copyright Notice in lua.h
*/
@@ -90,11 +90,6 @@ static int getn (lua_State *L) {
}
-static int setn (lua_State *L) {
- return luaL_error(L, LUA_QL("setn") " is obsolete");
-}
-
-
static int tinsert (lua_State *L) {
int e = aux_getn(L, 1) + 1; /* first empty element */
int pos; /* where to insert new element */
@@ -304,7 +299,6 @@ static const luaL_Reg tab_funcs[] = {
{"insert", tinsert},
{"pack", pack},
{"remove", tremove},
- {"setn", setn},
{"sort", sort},
{NULL, NULL}
};