summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-06-24 12:40:02 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-06-24 12:40:02 +0200
commitaa7df4b8234d4b601ad0310605181fdabc8cfcaa (patch)
treea7ff42a5ad7081762c10ffc81b5ba7ebd7f4dc08
parentee08a00d1ba447072484f96c445e985f15f48e49 (diff)
Remove empty ThreadEngine constructors and destructors
-rw-r--r--include/threadengines/threadengine_pthread.h9
-rw-r--r--include/threadengines/threadengine_win32.h5
-rw-r--r--src/threadengines/threadengine_pthread.cpp8
-rw-r--r--src/threadengines/threadengine_win32.cpp8
4 files changed, 0 insertions, 30 deletions
diff --git a/include/threadengines/threadengine_pthread.h b/include/threadengines/threadengine_pthread.h
index e86c0b1bb..5756926fd 100644
--- a/include/threadengines/threadengine_pthread.h
+++ b/include/threadengines/threadengine_pthread.h
@@ -36,15 +36,6 @@
class CoreExport ThreadEngine
{
public:
-
- /** Constructor.
- */
- ThreadEngine();
-
- /** Destructor
- */
- virtual ~ThreadEngine();
-
/** Create a new thread. This takes an already allocated
* Thread* pointer and initializes it to use this threading
* engine. On failure, this function may throw a CoreException.
diff --git a/include/threadengines/threadengine_win32.h b/include/threadengines/threadengine_win32.h
index 45be0ff06..18b6e798c 100644
--- a/include/threadengines/threadengine_win32.h
+++ b/include/threadengines/threadengine_win32.h
@@ -38,11 +38,6 @@ class Thread;
class CoreExport ThreadEngine
{
public:
-
- ThreadEngine();
-
- virtual ~ThreadEngine();
-
static DWORD WINAPI Entry(void* parameter);
/** Create a new thread. This takes an already allocated
diff --git a/src/threadengines/threadengine_pthread.cpp b/src/threadengines/threadengine_pthread.cpp
index 255fefe63..36ba3ab42 100644
--- a/src/threadengines/threadengine_pthread.cpp
+++ b/src/threadengines/threadengine_pthread.cpp
@@ -23,10 +23,6 @@
#include <pthread.h>
#include <fcntl.h>
-ThreadEngine::ThreadEngine()
-{
-}
-
static void* entry_point(void* parameter)
{
/* Recommended by nenolod, signal safety on a per-thread basis */
@@ -54,10 +50,6 @@ void ThreadEngine::Start(Thread* thread)
}
}
-ThreadEngine::~ThreadEngine()
-{
-}
-
void ThreadData::FreeThread(Thread* thread)
{
thread->SetExitFlag();
diff --git a/src/threadengines/threadengine_win32.cpp b/src/threadengines/threadengine_win32.cpp
index c3a844a74..77f638f37 100644
--- a/src/threadengines/threadengine_win32.cpp
+++ b/src/threadengines/threadengine_win32.cpp
@@ -21,10 +21,6 @@
#include "inspircd.h"
#include "threadengines/threadengine_win32.h"
-ThreadEngine::ThreadEngine()
-{
-}
-
void ThreadEngine::Start(Thread* thread)
{
ThreadData* data = new ThreadData;
@@ -44,10 +40,6 @@ void ThreadEngine::Start(Thread* thread)
}
}
-ThreadEngine::~ThreadEngine()
-{
-}
-
DWORD WINAPI ThreadEngine::Entry(void* parameter)
{
Thread* pt = static_cast<Thread*>(parameter);