mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 06:15:07 +00:00
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.
This commit is contained in:
parent
81e23617d6
commit
3d0b5efcfc
3 changed files with 4 additions and 16 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue