From 735260d4d8ec3dc5c5e2f1b04f1e7d113c54eb00 Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Tue, 13 Dec 2011 19:24:10 +0100 Subject: [PATCH] Thread:kill()? What Thread:kill()? --- src/modules/thread/wrap_Thread.cpp | 8 -------- src/modules/thread/wrap_Thread.h | 1 - 2 files changed, 9 deletions(-) diff --git a/src/modules/thread/wrap_Thread.cpp b/src/modules/thread/wrap_Thread.cpp index c30143813..831367de1 100644 --- a/src/modules/thread/wrap_Thread.cpp +++ b/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 }, diff --git a/src/modules/thread/wrap_Thread.h b/src/modules/thread/wrap_Thread.h index c7b05c402..1e2c70e79 100644 --- a/src/modules/thread/wrap_Thread.h +++ b/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);