瀏覽代碼

code for error message for 'setn' removed

Roberto Ierusalimschy 15 年之前
父節點
當前提交
3cb343efd6
共有 1 個文件被更改,包括 1 次插入7 次删除
  1. 1 7
      ltablib.c

+ 1 - 7
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}
 };