mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Removed dead code for the now-removed Thread:kill
This commit is contained in:
@@ -68,17 +68,6 @@ void Thread::wait()
|
||||
thread = 0;
|
||||
}
|
||||
|
||||
void Thread::kill()
|
||||
{
|
||||
Lock l(mutex);
|
||||
if (!running)
|
||||
return;
|
||||
SDL_KillThread(thread);
|
||||
SDL_WaitThread(thread, 0);
|
||||
running = false;
|
||||
thread = 0;
|
||||
}
|
||||
|
||||
int Thread::thread_runner(void *data)
|
||||
{
|
||||
Thread *self = (Thread *) data; // some compilers don't like 'this'
|
||||
|
||||
@@ -47,7 +47,6 @@ public:
|
||||
Thread(Threadable *t);
|
||||
~Thread();
|
||||
bool start();
|
||||
void kill();
|
||||
void wait();
|
||||
}; // Thread
|
||||
} // sdl
|
||||
|
||||
Reference in New Issue
Block a user