diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-09-22 09:37:52 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-09-22 09:37:52 -0300 |
commit | 8b5bb6056ba944bfbb4489492a5698a2285fa81a (patch) | |
tree | 8ae691152fc95bc7216ddcbf69171e10adbacb09 /ldo.c | |
parent | 4973682294a32b9c4286864179685d11ad4a6819 (diff) | |
download | lua-8b5bb6056ba944bfbb4489492a5698a2285fa81a.tar.gz lua-8b5bb6056ba944bfbb4489492a5698a2285fa81a.tar.bz2 lua-8b5bb6056ba944bfbb4489492a5698a2285fa81a.zip |
removal of unused variable
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 2.9 2004/09/08 14:23:09 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 2.10 2004/09/15 20:39:42 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -391,7 +391,6 @@ static int resume_error (lua_State *L, const char *msg) { | |||
391 | 391 | ||
392 | LUA_API int lua_resume (lua_State *L, int nargs) { | 392 | LUA_API int lua_resume (lua_State *L, int nargs) { |
393 | int status; | 393 | int status; |
394 | lu_byte old_allowhooks; | ||
395 | lua_lock(L); | 394 | lua_lock(L); |
396 | lua_assert(L->errfunc == 0 && L->nCcalls == 0); | 395 | lua_assert(L->errfunc == 0 && L->nCcalls == 0); |
397 | if (L->status != LUA_YIELD) { | 396 | if (L->status != LUA_YIELD) { |
@@ -400,7 +399,6 @@ LUA_API int lua_resume (lua_State *L, int nargs) { | |||
400 | else if (L->ci != L->base_ci) | 399 | else if (L->ci != L->base_ci) |
401 | return resume_error(L, "cannot resume non-suspended coroutine"); | 400 | return resume_error(L, "cannot resume non-suspended coroutine"); |
402 | } | 401 | } |
403 | old_allowhooks = L->allowhook; | ||
404 | status = luaD_rawrunprotected(L, resume, &nargs); | 402 | status = luaD_rawrunprotected(L, resume, &nargs); |
405 | if (status != 0) { /* error? */ | 403 | if (status != 0) { /* error? */ |
406 | L->status = status; /* mark thread as `dead' */ | 404 | L->status = status; /* mark thread as `dead' */ |