diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-12-29 00:41:05 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-29 12:04:15 +0100 |
commit | 3d0b5efcfc06f1aa977fbc1eb074fb54c36e2869 (patch) | |
tree | aa36dc0fbddbc5dbebd90c1b7f498a971e2194ea /Kernel/Process.cpp | |
parent | 81e23617d6525663c11619a9c330a62654671155 (diff) | |
download | serenity-3d0b5efcfc06f1aa977fbc1eb074fb54c36e2869.zip |
Kernel: Remove Process::all_processes()
This was only used in ProcFS, which can use the `processes()` list just
as well, so let's remove it.
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r-- | Kernel/Process.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 99155ff8cd..3fa3e4d734 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -79,17 +79,6 @@ UNMAP_AFTER_INIT void Process::initialize() create_signal_trampoline(); } -NonnullRefPtrVector<Process> Process::all_processes() -{ - NonnullRefPtrVector<Process> output; - processes().with([&](const auto& list) { - output.ensure_capacity(list.size_slow()); - for (const auto& process : list) - output.append(NonnullRefPtr<Process>(process)); - }); - return output; -} - bool Process::in_group(GroupID gid) const { return this->gid() == gid || extra_gids().contains_slow(gid); |