summaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js')
-rwxr-xr-xsrc/js/lib/myutils.js37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/js/lib/myutils.js b/src/js/lib/myutils.js
index 001bb7d..553a0ab 100755
--- a/src/js/lib/myutils.js
+++ b/src/js/lib/myutils.js
@@ -27,43 +27,6 @@ function printf() {
return calls4arg.apply(this, args_to_pass);
}
-/*
-function syslog() {
- if (arguments.length > 4) {
- return printf("warning: tried to printf with %d args, max %d.\n", arguments.length, 4);
- }
-
- var args_to_pass = new Array();
-
- sym = "syslog";
-
- if (sym in sym_cache) {
- var addy = sym_cache[sym];
- } else {
- var dlsym_addy = read_u32(reserve_addr + 24 + slid);
- var shc_slide = read_u32(reserve_addr + 20 + slid);
- var addy = call4arg(dlsym_addy + shc_slide, 0xfffffffe, sptr(sym), 0, 0);
- sym_cache[sym] = addy;
- }
-
- args_to_pass.push(addy);
-
- for (var i = 0; i < arguments.length; i++) {
- if (arguments[i].constructor === String) {
- args_to_pass.push(sptr(arguments[i]));
- } else {
- args_to_pass.push(arguments[i]);
- }
- }
-
- return callnarg.apply(this, args_to_pass);
-}
-
-function sleep(t) {
- return calls4arg("sleep", t, 0, 0, 0);
-}
- */
-
function scall_wrapper(s) {
function _scall_wrapper() {
var args_to_pass = new Array();