mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
Removed dead code for the now-removed Thread:kill
This commit is contained in:
@@ -36,7 +36,6 @@ public:
|
||||
virtual ~Thread() {}
|
||||
virtual bool start() = 0;
|
||||
virtual void wait() = 0;
|
||||
virtual void kill() = 0;
|
||||
}; // ThreadObject
|
||||
|
||||
} // thread
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -93,10 +93,5 @@ void Threadable::wait()
|
||||
owner->wait();
|
||||
}
|
||||
|
||||
void Threadable::kill()
|
||||
{
|
||||
owner->kill();
|
||||
}
|
||||
|
||||
} // thread
|
||||
} // love
|
||||
|
||||
@@ -82,7 +82,6 @@ public:
|
||||
|
||||
bool start();
|
||||
void wait();
|
||||
void kill();
|
||||
|
||||
protected:
|
||||
Thread *owner;
|
||||
|
||||
Reference in New Issue
Block a user