diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-04-03 12:07:41 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-04-03 12:07:41 +0200 |
commit | 60f236b285dbbec207265cb72d6c491d9aea9751 (patch) | |
tree | 35d4ebe8a89e85780dfe3c206892c26712ecbae4 /AK/kmalloc.h | |
parent | d11b5407a39a24cfd2b67ab5bf83a7e672e8ebba (diff) | |
download | serenity-60f236b285dbbec207265cb72d6c491d9aea9751.zip |
AK: Clean up some of the confusion that is AK/kmalloc.{cpp,h}
Diffstat (limited to 'AK/kmalloc.h')
-rw-r--r-- | AK/kmalloc.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/AK/kmalloc.h b/AK/kmalloc.h index e1bd7126f7..3b28b0a4f4 100644 --- a/AK/kmalloc.h +++ b/AK/kmalloc.h @@ -27,11 +27,6 @@ void kfree(void* ptr); } -#ifdef KERNEL -inline void* operator new(size_t, void* p) { return p; } -inline void* operator new[](size_t, void* p) { return p; } -#else - inline void* operator new(size_t size) { return kmalloc(size); @@ -53,5 +48,3 @@ inline void operator delete[](void* ptr) } #endif - -#endif |