diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index e32ed3c116c..e910533efbd 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -4612,17 +4612,6 @@ int Process::sys$profiling_disable(pid_t pid) return 0; } -Thread& Process::any_thread() -{ - Thread* found_thread = nullptr; - for_each_thread([&](auto& thread) { - found_thread = &thread; - return IterationDecision::Break; - }); - ASSERT(found_thread); - return *found_thread; -} - WaitQueue& Process::futex_queue(i32* userspace_address) { auto& queue = m_futex_queues.ensure((FlatPtr)userspace_address); diff --git a/Kernel/Process.h b/Kernel/Process.h index 29d6f6c17df..353110cadd7 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -386,8 +386,6 @@ public: u16 thread_count() const { return m_thread_count; } - Thread& any_thread(); - Lock& big_lock() { return m_big_lock; } struct ELFBundle {