Removed dead code for the now-removed Thread:kill

This commit is contained in:
Alex Szpakowski
2013-07-08 17:00:47 -03:00
parent 9da1af1e99
commit 9155b7b0ee
6 changed files with 5 additions and 26 deletions
-1
View File
@@ -36,7 +36,6 @@ public:
virtual ~Thread() {}
virtual bool start() = 0;
virtual void wait() = 0;
virtual void kill() = 0;
}; // ThreadObject
} // thread
-11
View File
@@ -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'
-1
View File
@@ -47,7 +47,6 @@ public:
Thread(Threadable *t);
~Thread();
bool start();
void kill();
void wait();
}; // Thread
} // sdl
-5
View File
@@ -93,10 +93,5 @@ void Threadable::wait()
owner->wait();
}
void Threadable::kill()
{
owner->kill();
}
} // thread
} // love
-1
View File
@@ -82,7 +82,6 @@ public:
bool start();
void wait();
void kill();
protected:
Thread *owner;