Remove obsolete code from osalloc (#13158)

This commit is contained in:
Ico Doornekamp
2020-01-16 09:11:05 +01:00
committed by Andreas Rumpf
parent d5f011d9e6
commit 54bfd69a27

View File

@@ -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".}