no more compatibility code for traversing tables

This commit is contained in:
Roberto Ierusalimschy
2005-05-04 17:42:28 -03:00
parent 12acca7bd8
commit 65f4a0f636
5 changed files with 6 additions and 19 deletions

10
lvm.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lvm.c,v 2.40 2005/05/03 19:01:17 roberto Exp roberto $
** $Id: lvm.c,v 2.41 2005/05/03 19:30:17 roberto Exp roberto $
** Lua virtual machine
** See Copyright Notice in lua.h
*/
@@ -714,14 +714,6 @@ StkId luaV_execute (lua_State *L, int nexeccalls) {
}
continue;
}
case OP_TFORPREP: { /* for compatibility only */
if (ttistable(ra)) {
setobjs2s(L, ra+1, ra);
setobj2s(L, ra, luaH_getstr(hvalue(gt(L)), luaS_new(L, "next")));
}
dojump(L, pc, GETARG_sBx(i));
continue;
}
case OP_SETLIST: {
int n = GETARG_B(i);
int c = GETARG_C(i);