Skip to content

Commit

Permalink
Remove obsolete code from osalloc (#13158)
Browse files Browse the repository at this point in the history
  • Loading branch information
zevv authored and Araq committed Jan 16, 2020
1 parent d5f011d commit 54bfd69
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/system/osalloc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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".}

0 comments on commit 54bfd69

Please sign in to comment.