diff options
author | Andreas Kling <kling@serenityos.org> | 2021-02-07 17:36:01 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-07 19:27:00 +0100 |
commit | 5c1c82cd334d10607ed0fee7a2d293f7e1392af6 (patch) | |
tree | ca963fc623bfda3b01e36a4954f5199dbbd9665c | |
parent | b1813e5dae176ddabafad4e69084e08f3a972c54 (diff) | |
download | serenity-5c1c82cd334d10607ed0fee7a2d293f7e1392af6.zip |
Kernel: Remove unused function Process::backtrace()
-rw-r--r-- | Kernel/Process.cpp | 11 | ||||
-rw-r--r-- | Kernel/Process.h | 2 |
2 files changed, 0 insertions, 13 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index d9e273f129..00a86a758d 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -843,17 +843,6 @@ void Process::FileDescriptionAndFlags::set(NonnullRefPtr<FileDescription>&& desc m_flags = flags; } -OwnPtr<KBuffer> Process::backtrace() const -{ - KBufferBuilder builder; - for_each_thread([&](Thread& thread) { - builder.appendf("Thread %d (%s):\n", thread.tid().value(), thread.name().characters()); - builder.append(thread.backtrace()); - return IterationDecision::Continue; - }); - return builder.build(); -} - Custody& Process::root_directory() { if (!m_root_directory) diff --git a/Kernel/Process.h b/Kernel/Process.h index a0e1e40c5d..1ad36dc83d 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -156,8 +156,6 @@ public: bool should_core_dump() const { return m_should_dump_core; } void set_dump_core(bool dump_core) { m_should_dump_core = dump_core; } - OwnPtr<KBuffer> backtrace() const; - bool is_dead() const { return m_dead; } bool is_stopped() const { return m_is_stopped; } |