diff --git a/Kernel/Process.h b/Kernel/Process.h index d8a2322414..642271b1cc 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -185,17 +185,6 @@ public: static NonnullRefPtrVector all_processes(); - template - RefPtr create_kernel_thread(EntryFunction entry, u32 priority, OwnPtr name, u32 affinity = THREAD_AFFINITY_DEFAULT, bool joinable = true) - { - auto* entry_func = new EntryFunction(move(entry)); - return create_kernel_thread([](void* data) { - EntryFunction* func = reinterpret_cast(data); - (*func)(); - delete func; - }, - priority, move(name), affinity, joinable); - } RefPtr create_kernel_thread(void (*entry)(void*), void* entry_data, u32 priority, OwnPtr name, u32 affinity = THREAD_AFFINITY_DEFAULT, bool joinable = true); bool is_profiling() const { return m_profiling; }