From 59e29733353159ecae3b73719043a75097583ccd Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 13 Jun 2008 14:07:10 -0300 Subject: [PATCH] removed static variable lua_state (not used) --- ltests.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ltests.c b/ltests.c index c5bba55c..0831028a 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 2.49 2008/06/12 14:20:49 roberto Exp roberto $ +** $Id: ltests.c,v 2.50 2008/06/13 14:15:59 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -40,8 +40,6 @@ int l_Trick = 0; -static lua_State *lua_state = NULL; - int islocked = 0; @@ -1134,7 +1132,6 @@ int luaB_opentests (lua_State *L) { lua_assert(lua_getallocf(L, &ud) == debug_realloc); lua_assert(ud == cast(void *, &l_memcontrol)); lua_setallocf(L, lua_getallocf(L, NULL), ud); - lua_state = L; /* keep first state to be opened */ luaL_register(L, "T", tests_funcs); return 0; }