Revert adding lua array per discussion in #222 (#229)

This reverts commit 55a15c204e.
This commit is contained in:
Paul Kulchenko 2021-08-07 15:20:33 -07:00 committed by GitHub
parent 6bbb44c165
commit 2bc0901ce3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 20 additions and 557 deletions

View file

@ -401,18 +401,6 @@ static int sort (lua_State *L) {
return 0;
}
static int resize (lua_State *L) {
/* reserve capacity of the array part -- useful when filling large tables/arrays */
int size;
luaL_checktype(L, 1, LUA_TTABLE);
size = luaL_checkinteger(L, 2);
luaL_argcheck(L, size >= 0, 2, "invalid size");
lua_resize(L, 1, (unsigned int)size);
return 0;
}
/* }====================================================== */
@ -424,7 +412,6 @@ static const luaL_Reg tab_funcs[] = {
{"remove", tremove},
{"move", tmove},
{"sort", sort},
{"resize", resize},
{NULL, NULL}
};