diff options
author | Anthony Iacono <anthonyiacono@gmail.com> | 2022-08-22 15:54:59 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-08-23 01:01:48 +0200 |
commit | ec3d8a7a1837cb6b8667d7e03514821cc74ed27e (patch) | |
tree | 7b43d0358015fcebe5ef2f464c815dab4ba8fa4d | |
parent | 434d77cd43d12b2f88439c073fe36679cca10554 (diff) | |
download | serenity-ec3d8a7a1837cb6b8667d7e03514821cc74ed27e.zip |
Kernel: Remove unused Process::in_group()
-rw-r--r-- | Kernel/Process.cpp | 6 | ||||
-rw-r--r-- | Kernel/Process.h | 2 |
2 files changed, 0 insertions, 8 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 25ed65de82..b4ae1bcbe8 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -84,12 +84,6 @@ UNMAP_AFTER_INIT void Process::initialize() create_signal_trampoline(); } -bool Process::in_group(GroupID gid) const -{ - auto credentials = this->credentials(); - return credentials->gid() == gid || credentials->extra_gids().contains_slow(gid); -} - void Process::kill_threads_except_self() { InterruptDisabler disabler; diff --git a/Kernel/Process.h b/Kernel/Process.h index fcafbad5f0..2aeaee2b6e 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -246,8 +246,6 @@ public: return with_protected_data([](auto& protected_data) { return protected_data.umask; }); } - bool in_group(GroupID) const; - // Breakable iteration functions template<IteratorFunction<Process&> Callback> static void for_each(Callback); |