summaryrefslogtreecommitdiff
path: root/Libraries/LibC/malloc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibC/malloc.cpp')
-rw-r--r--Libraries/LibC/malloc.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/Libraries/LibC/malloc.cpp b/Libraries/LibC/malloc.cpp
index 8d126b5b81..6971ead3ff 100644
--- a/Libraries/LibC/malloc.cpp
+++ b/Libraries/LibC/malloc.cpp
@@ -182,15 +182,6 @@ static BigAllocator* big_allocator_for_size(size_t size)
extern "C" {
-size_t malloc_good_size(size_t size)
-{
- for (size_t i = 0; size_classes[i]; ++i) {
- if (size < size_classes[i])
- return size_classes[i];
- }
- return PAGE_ROUND_UP(size);
-}
-
static void* os_alloc(size_t size, const char* name)
{
auto* ptr = serenity_mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE | MAP_PURGEABLE, 0, 0, block_size, name);