summaryrefslogtreecommitdiff
path: root/AK/kmalloc.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-03 12:07:41 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-03 12:07:41 +0200
commit60f236b285dbbec207265cb72d6c491d9aea9751 (patch)
tree35d4ebe8a89e85780dfe3c206892c26712ecbae4 /AK/kmalloc.h
parentd11b5407a39a24cfd2b67ab5bf83a7e672e8ebba (diff)
downloadserenity-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.h7
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