diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-10-11 13:00:58 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-10-11 15:17:42 +0300 |
commit | fb5c01c073d06034815d5f3b782fd11cbdf6d6f5 (patch) | |
tree | b566891f8852c7305b9e571aa6607164a7d78b75 /lib/utils.js | |
parent | f4584af42c8baa0a8f221adf1ff9a85765163e4b (diff) | |
download | tracifyjs-fb5c01c073d06034815d5f3b782fd11cbdf6d6f5.tar.gz tracifyjs-fb5c01c073d06034815d5f3b782fd11cbdf6d6f5.zip |
stealing more hacks from acorn in the name of speed
Diffstat (limited to 'lib/utils.js')
-rw-r--r-- | lib/utils.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/utils.js b/lib/utils.js index d18e62ee..79039665 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -43,19 +43,6 @@ "use strict"; -function curry(f) { - var args = slice(arguments, 1); - return function() { return f.apply(this, args.concat(slice(arguments))); }; -}; - -function prog1(ret) { - if (ret instanceof Function) - ret = ret(); - for (var i = 1, n = arguments.length; --n > 0; ++i) - arguments[i](); - return ret; -}; - function array_to_hash(a) { var ret = Object.create(null); for (var i = 0; i < a.length; ++i) |