diff --git a/Libraries/LibCore/CThread.cpp b/Libraries/LibCore/CThread.cpp deleted file mode 100644 index 59663f06a3..0000000000 --- a/Libraries/LibCore/CThread.cpp +++ /dev/null @@ -1,33 +0,0 @@ -#ifdef __serenity__ - -#include -#include -#include -#include -#include -#include - -CThread& CThread::main_thread() -{ - static CThread* main_thread; - if (!main_thread) - main_thread = new CThread(MainThread); - return *main_thread; -} - -CThread::CThread(MainThreadTag) - : m_thread_id(0) -{ -} - -CThread::CThread(int (*entry)(void*), void* user_data) -{ - ASSERT(entry); - m_thread_id = create_thread(entry, user_data); -} - -CThread::~CThread() -{ -} - -#endif diff --git a/Libraries/LibCore/CThread.h b/Libraries/LibCore/CThread.h deleted file mode 100644 index 20d910925f..0000000000 --- a/Libraries/LibCore/CThread.h +++ /dev/null @@ -1,23 +0,0 @@ -#pragma once - -#ifdef __serenity__ - -class CThread { -public: - static CThread& main_thread(); - - CThread(int (*entry)(void*), void* user_data); - ~CThread(); - - bool is_main_thread() const { return m_thread_id == 0; } - int thread_id() const { return m_thread_id; } - -private: - enum MainThreadTag { MainThread }; - explicit CThread(MainThreadTag); - - int m_thread_id { -1 }; -}; - -#endif - diff --git a/Libraries/LibCore/Makefile b/Libraries/LibCore/Makefile index ac7a75cdaa..a4a641bf3e 100644 --- a/Libraries/LibCore/Makefile +++ b/Libraries/LibCore/Makefile @@ -3,7 +3,6 @@ include ../../Makefile.common OBJS = \ CArgsParser.o \ CIODevice.o \ - CThread.o \ CFile.o \ CSocket.o \ CLocalSocket.o \