aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ltablib.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/ltablib.c b/ltablib.c
index 2feffe54..9a089932 100644
--- a/ltablib.c
+++ b/ltablib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltablib.c,v 1.50 2009/12/07 15:50:27 roberto Exp roberto $ 2** $Id: ltablib.c,v 1.51 2009/12/17 16:20:01 roberto Exp roberto $
3** Library for Table Manipulation 3** Library for Table Manipulation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -90,11 +90,6 @@ static int getn (lua_State *L) {
90} 90}
91 91
92 92
93static int setn (lua_State *L) {
94 return luaL_error(L, LUA_QL("setn") " is obsolete");
95}
96
97
98static int tinsert (lua_State *L) { 93static int tinsert (lua_State *L) {
99 int e = aux_getn(L, 1) + 1; /* first empty element */ 94 int e = aux_getn(L, 1) + 1; /* first empty element */
100 int pos; /* where to insert new element */ 95 int pos; /* where to insert new element */
@@ -304,7 +299,6 @@ static const luaL_Reg tab_funcs[] = {
304 {"insert", tinsert}, 299 {"insert", tinsert},
305 {"pack", pack}, 300 {"pack", pack},
306 {"remove", tremove}, 301 {"remove", tremove},
307 {"setn", setn},
308 {"sort", sort}, 302 {"sort", sort},
309 {NULL, NULL} 303 {NULL, NULL}
310}; 304};