about summary refs log tree commit diff stats
path: root/src/lstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lstate.c')
-rw-r--r--src/lstate.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lstate.c b/src/lstate.c
index cdcd669..b283d46 100644
--- a/src/lstate.c
+++ b/src/lstate.c
@@ -129,7 +129,6 @@ lua_State *luaE_newthread (lua_State *L) {
 void luaE_freethread (lua_State *L, lua_State *L1) {
   luaF_close(L1, L1->stack);  /* close all upvalues for this thread */
   lua_assert(L1->openupval == NULL);
-  luai_userstatefree(L1);
   freestack(L, L1);
   luaM_freemem(L, cast(lu_byte*, L1), sizeof(lua_State));
 }
@@ -179,8 +178,6 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) {
     close_state(L);
     L = NULL;
   }
-  else
-    luai_userstateopen(L);
   return L;
 }
 
@@ -203,7 +200,6 @@ LUA_API void lua_close (lua_State *L) {
     L->nCcalls = L->baseCcalls = 0;
   } while (luaD_rawrunprotected(L, callallgcTM, NULL) != 0);
   lua_assert(G(L)->tmudata == NULL);
-  luai_userstateclose(L);
   close_state(L);
 }