aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/library.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/library.js b/src/library.js
index f9cab641..22fbe1c3 100644
--- a/src/library.js
+++ b/src/library.js
@@ -3603,24 +3603,6 @@ LibraryManager.library = {
// stdlib.h
// ==========================================================================
- malloc: function(bytes) {
- /* Over-allocate to make sure it is byte-aligned by 8.
- * This will leak memory, but this is only the dummy
- * implementation (replaced by dlmalloc normally) so
- * not an issue.
- */
- ptr = Runtime.staticAlloc(bytes + 8);
- return (ptr+8) & 0xFFFFFFF8;
- },
- _Znwj: 'malloc',
- _Znaj: 'malloc',
- _Znam: 'malloc',
- _Znwm: 'malloc',
-
- free: function(){},
- _ZdlPv: 'free',
- _ZdaPv: 'free',
-
calloc__deps: ['malloc'],
calloc: function(n, s) {
var ret = _malloc(n*s);