From a69356e9e0a7525b1cebadc928a0efcce8c39b46 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 29 Mar 2000 17:19:20 -0300 Subject: no more special cases for closures with 0 upvalues (performance is the same, memory use a little higher, code much simpler). --- ltable.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'ltable.c') diff --git a/ltable.c b/ltable.c index afd17b26..86357920 100644 --- a/ltable.c +++ b/ltable.c @@ -1,5 +1,5 @@ /* -** $Id: ltable.c,v 1.36 2000/03/10 18:37:44 roberto Exp roberto $ +** $Id: ltable.c,v 1.37 2000/03/27 20:10:21 roberto Exp roberto $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ @@ -52,12 +52,6 @@ Node *luaH_mainposition (const Hash *t, const TObject *key) { case TAG_TABLE: h = IntPoint(L, avalue(key)); break; - case TAG_LPROTO: - h = IntPoint(L, tfvalue(key)); - break; - case TAG_CPROTO: - h = IntPoint(L, fvalue(key)); - break; case TAG_LCLOSURE: case TAG_CCLOSURE: h = IntPoint(L, clvalue(key)); break; -- cgit v1.2.3-55-g6feb