From 40b860c239d2c8e8213c9468dd19e82b4ff39dae Mon Sep 17 00:00:00 2001 From: TuxSH Date: Wed, 7 Nov 2018 01:16:35 +0100 Subject: [PATCH] Removing useless func IsAlive, since it's handled by ISetAllocated --- mesosphere/include/mesosphere/core/KAutoObject.hpp | 3 --- .../include/mesosphere/interrupts/KInterruptEvent.hpp | 4 ---- .../include/mesosphere/kresources/KResourceLimit.hpp | 1 - mesosphere/include/mesosphere/processes/KEvent.hpp | 4 ---- mesosphere/include/mesosphere/processes/KProcess.hpp | 1 - .../include/mesosphere/processes/KReadableEvent.hpp | 2 -- .../include/mesosphere/processes/KWritableEvent.hpp | 2 -- mesosphere/include/mesosphere/threading/KThread.hpp | 1 - mesosphere/source/interrupts/KInterruptEvent.cpp | 6 ------ mesosphere/source/processes/KEvent.cpp | 8 +------- mesosphere/source/threading/KThread.cpp | 5 ----- 11 files changed, 1 insertion(+), 36 deletions(-) diff --git a/mesosphere/include/mesosphere/core/KAutoObject.hpp b/mesosphere/include/mesosphere/core/KAutoObject.hpp index 7d691004f..2d10d94a9 100644 --- a/mesosphere/include/mesosphere/core/KAutoObject.hpp +++ b/mesosphere/include/mesosphere/core/KAutoObject.hpp @@ -57,9 +57,6 @@ class KAutoObject { return (u64)(uiptr)this; } - /// Is alive (checked for deletion) - virtual bool IsAlive() const = 0; - /// Virtual destructor virtual ~KAutoObject(); diff --git a/mesosphere/include/mesosphere/interrupts/KInterruptEvent.hpp b/mesosphere/include/mesosphere/interrupts/KInterruptEvent.hpp index 89798b18d..1c5c2a0a2 100644 --- a/mesosphere/include/mesosphere/interrupts/KInterruptEvent.hpp +++ b/mesosphere/include/mesosphere/interrupts/KInterruptEvent.hpp @@ -16,13 +16,9 @@ class KInterruptEvent final : public KReadableEvent, public ISetAllocatedirqId = irqId; - isInitialized = true; return ResultSuccess(); } -bool KInterruptEvent::IsAlive() const -{ - return isInitialized; -} - } diff --git a/mesosphere/source/processes/KEvent.cpp b/mesosphere/source/processes/KEvent.cpp index 050a129bd..ade62a12f 100644 --- a/mesosphere/source/processes/KEvent.cpp +++ b/mesosphere/source/processes/KEvent.cpp @@ -9,18 +9,12 @@ KEvent::~KEvent() { } -bool KEvent::IsAlive() const -{ - return isInitialized; -} - Result KEvent::Initialize() { SetClientServerParent(); SetResourceOwner(KCoreContext::GetCurrentInstance().GetCurrentProcess()); - isInitialized = true; return ResultSuccess(); } -} \ No newline at end of file +} diff --git a/mesosphere/source/threading/KThread.cpp b/mesosphere/source/threading/KThread.cpp index 51a1c2774..7e2a5d1af 100644 --- a/mesosphere/source/threading/KThread.cpp +++ b/mesosphere/source/threading/KThread.cpp @@ -9,11 +9,6 @@ namespace mesosphere { -bool KThread::IsAlive() const -{ - return true; -} - void KThread::OnAlarm() { CancelKernelSync();