Pārlūkot izejas kodu

Thread:kill()? What Thread:kill()?

Bart van Strien 14 gadi atpakaļ
vecāks
revīzija
735260d4d8

+ 0 - 8
src/modules/thread/wrap_Thread.cpp

@@ -36,13 +36,6 @@ namespace thread
 		return 0;
 	}
 
-	int w_Thread_kill(lua_State *L)
-	{
-		Thread *t = luax_checkthread(L, 1);
-		t->kill();
-		return 0;
-	}
-
 	int w_Thread_wait(lua_State *L)
 	{
 		Thread *t = luax_checkthread(L, 1);
@@ -152,7 +145,6 @@ namespace thread
 
 	static const luaL_Reg type_functions[] = {
 		{ "start", w_Thread_start },
-		{ "kill", w_Thread_kill },
 		{ "wait", w_Thread_wait },
 		{ "getName", w_Thread_getName },
 		{ "get", w_Thread_get },

+ 0 - 1
src/modules/thread/wrap_Thread.h

@@ -31,7 +31,6 @@ namespace thread
 {
 	Thread *luax_checkthread(lua_State *L, int idx);
 	int w_Thread_start(lua_State *L);
-	int w_Thread_kill(lua_State *L);
 	int w_Thread_wait(lua_State *L);
 	int w_Thread_getName(lua_State *L);
 	int w_Thread_get(lua_State *L);