From 3cb343efd644fb771b6d8193406afd49527dc1ec Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 18 Dec 2009 14:53:12 -0200 Subject: [PATCH] code for error message for 'setn' removed --- ltablib.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ltablib.c b/ltablib.c index 2feffe54..9a089932 100644 --- 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} };