diff options
author | bunnei <bunneidev@gmail.com> | 2021-04-10 07:42:23 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-05-06 01:40:51 +0200 |
commit | 89edbe8aa20d278d6f2c5ab735163f0d96ff88d2 (patch) | |
tree | 568023bd7dbb880730c2cbbcbafe025045fe2f7b /src/core/hle/kernel/slab_helpers.h | |
parent | hle: kernel: Move slab heap management to KernelCore. (diff) | |
download | yuzu-89edbe8aa20d278d6f2c5ab735163f0d96ff88d2.tar yuzu-89edbe8aa20d278d6f2c5ab735163f0d96ff88d2.tar.gz yuzu-89edbe8aa20d278d6f2c5ab735163f0d96ff88d2.tar.bz2 yuzu-89edbe8aa20d278d6f2c5ab735163f0d96ff88d2.tar.lz yuzu-89edbe8aa20d278d6f2c5ab735163f0d96ff88d2.tar.xz yuzu-89edbe8aa20d278d6f2c5ab735163f0d96ff88d2.tar.zst yuzu-89edbe8aa20d278d6f2c5ab735163f0d96ff88d2.zip |
Diffstat (limited to 'src/core/hle/kernel/slab_helpers.h')
-rw-r--r-- | src/core/hle/kernel/slab_helpers.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/core/hle/kernel/slab_helpers.h b/src/core/hle/kernel/slab_helpers.h index 4f23ddabf..66954b6b2 100644 --- a/src/core/hle/kernel/slab_helpers.h +++ b/src/core/hle/kernel/slab_helpers.h @@ -67,10 +67,6 @@ class KAutoObjectWithSlabHeapAndContainer : public Base { private: static Derived* Allocate(KernelCore& kernel) { - return kernel.SlabHeap<Derived>().Allocate(); - } - - static Derived* AllocateWithKernel(KernelCore& kernel) { return kernel.SlabHeap<Derived>().AllocateWithKernel(kernel); } @@ -120,16 +116,8 @@ public: kernel.ObjectListContainer().Initialize(); } - static Derived* Create() { - Derived* obj = Allocate(); - if (obj != nullptr) { - KAutoObject::Create(obj); - } - return obj; - } - - static Derived* CreateWithKernel(KernelCore& kernel) { - Derived* obj = AllocateWithKernel(kernel); + static Derived* Create(KernelCore& kernel) { + Derived* obj = Allocate(kernel); if (obj != nullptr) { KAutoObject::Create(obj); } |