aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-01-10 14:11:32 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-01-10 14:11:32 -0800
commit513d0745230eb9c41af4d9b69ea5758689e25df1 (patch)
treec735b7ba7841559c4d2be2a0b68bb59c1dfc4bd5 /src/library.js
parent21bb26dbc4bc4e897b2f44d38b21a3124b5d267b (diff)
remove unneeded malloc/free/etc. stuff from library.js
Diffstat (limited to 'src/library.js')
-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);