1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

AK: Clean up some of the confusion that is AK/kmalloc.{cpp,h}

This commit is contained in:
Andreas Kling 2019-04-03 12:07:41 +02:00
parent d11b5407a3
commit 60f236b285
7 changed files with 0 additions and 368 deletions

View file

@ -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