diff options
author | Ico Doornekamp <ico@pruts.nl> | 2020-01-16 09:11:05 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2020-01-16 09:11:05 +0100 |
commit | 54bfd69a27db6015e4eb7ed0b57b01b7924be2f6 (patch) | |
tree | 7a28c6d1a732ad6d29ca92ff0d2631eb008608c4 /lib | |
parent | d5f011d9e634f1de7046ecec89665048da525fbc (diff) | |
download | Nim-54bfd69a27db6015e4eb7ed0b57b01b7924be2f6.tar.gz |
Remove obsolete code from osalloc (#13158)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system/osalloc.nim | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/system/osalloc.nim b/lib/system/osalloc.nim index 28a426e65..aa86ee379 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".} |