Browse Source

Kernel: Remove Process inheriting from Weakable

This mechanism wasn't actually used to create any WeakPtr<Process>.
Such pointers would be pretty hard to work with anyway, due to the
multi-step destruction ritual of Process.
Andreas Kling 5 năm trước cách đây
mục cha
commit
e90765e957
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 1 3
      Kernel/Process.h

+ 1 - 3
Kernel/Process.h

@@ -30,7 +30,6 @@
 #include <AK/InlineLinkedList.h>
 #include <AK/NonnullOwnPtrVector.h>
 #include <AK/String.h>
-#include <AK/Weakable.h>
 #include <Kernel/FileSystem/InodeMetadata.h>
 #include <Kernel/Forward.h>
 #include <Kernel/Lock.h>
@@ -93,8 +92,7 @@ struct UnveiledPath {
     unsigned permissions { 0 };
 };
 
-class Process : public InlineLinkedListNode<Process>
-    , public Weakable<Process> {
+class Process : public InlineLinkedListNode<Process> {
     friend class InlineLinkedListNode<Process>;
     friend class Thread;