aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/memory
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2025-02-23 14:37:28 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2025-02-23 14:37:28 +0000
commit20f2a4a3e9b8100544a7b3dd57c5959dc6dc066f (patch)
tree5e3d9b71c8b45a18e5b4d377155608ef4cb20f49 /arch/x86_64/src/memory
parentfcc586a846562e024c1cd77042634494cf380bd8 (diff)
downloadteachos-20f2a4a3e9b8100544a7b3dd57c5959dc6dc066f.tar.xz
teachos-20f2a4a3e9b8100544a7b3dd57c5959dc6dc066f.zip
Remove useless if statements
Diffstat (limited to 'arch/x86_64/src/memory')
-rw-r--r--arch/x86_64/src/memory/heap/global_heap_allocator.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/x86_64/src/memory/heap/global_heap_allocator.cpp b/arch/x86_64/src/memory/heap/global_heap_allocator.cpp
index 09db9ba..235c544 100644
--- a/arch/x86_64/src/memory/heap/global_heap_allocator.cpp
+++ b/arch/x86_64/src/memory/heap/global_heap_allocator.cpp
@@ -57,9 +57,7 @@ auto operator delete(void * pointer) noexcept -> void
auto operator delete(void * pointer, std::size_t size) noexcept -> void
{
- if (size)
- {
- }
+ (void)size;
teachos::arch::memory::heap::global_heap_allocator::deallocate(pointer);
}
@@ -75,8 +73,6 @@ auto operator delete[](void * pointer) noexcept -> void
auto operator delete[](void * pointer, std::size_t size) noexcept -> void
{
- if (size)
- {
- }
+ (void)size;
teachos::arch::memory::heap::global_heap_allocator::deallocate(pointer);
}