From 54bfd69a27db6015e4eb7ed0b57b01b7924be2f6 Mon Sep 17 00:00:00 2001 From: Ico Doornekamp Date: Thu, 16 Jan 2020 09:11:05 +0100 Subject: [PATCH] Remove obsolete code from osalloc (#13158) --- lib/system/osalloc.nim | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/system/osalloc.nim b/lib/system/osalloc.nim index 28a426e65432..aa86ee379beb 100644 --- a/lib/system/osalloc.nim +++ b/lib/system/osalloc.nim @@ -296,15 +296,5 @@ elif hostOS == "standalone" or defined(StandaloneHeapSize): if bumpPointer-size == cast[int](p): dec bumpPointer, size -elif hostOS == "any": - proc osAllocPages(size: int): pointer {.inline.} = - result = c_malloc(size.csize_t) - - proc osTryAllocPages(size: int): pointer {.inline.} = - result = c_malloc(size.csize_t) - - proc osDeallocPages(p: pointer, size: int) {.inline.} = - c_free(p) - else: {.error: "Port memory manager to your platform".}