code for error message for 'setn' removed

This commit is contained in:
Roberto Ierusalimschy 2009-12-18 14:53:12 -02:00
parent ec0fc1a13b
commit 3cb343efd6
1 changed files with 1 additions and 7 deletions

View File

@ -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}
};