Skip to content

Commit 54bfd69

Browse files
zevvAraq
authored andcommitted
Remove obsolete code from osalloc (#13158)
1 parent d5f011d commit 54bfd69

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/system/osalloc.nim

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -296,15 +296,5 @@ elif hostOS == "standalone" or defined(StandaloneHeapSize):
296296
if bumpPointer-size == cast[int](p):
297297
dec bumpPointer, size
298298

299-
elif hostOS == "any":
300-
proc osAllocPages(size: int): pointer {.inline.} =
301-
result = c_malloc(size.csize_t)
302-
303-
proc osTryAllocPages(size: int): pointer {.inline.} =
304-
result = c_malloc(size.csize_t)
305-
306-
proc osDeallocPages(p: pointer, size: int) {.inline.} =
307-
c_free(p)
308-
309299
else:
310300
{.error: "Port memory manager to your platform".}

0 commit comments

Comments
 (0)