aboutsummaryrefslogtreecommitdiff
path: root/src/utility.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2011-02-22 20:49:21 -0800
committerAlon Zakai <azakai@mozilla.com>2011-02-22 20:49:21 -0800
commit8d224bc085bbfcf626db8fe1da2a9679d13d96f4 (patch)
treee707275bbff04c84e2560815988a7964976c7538 /src/utility.js
parent9efae48667c05a5cd7e699a3a95b7db80539b801 (diff)
optimize type discovery
Diffstat (limited to 'src/utility.js')
-rw-r--r--src/utility.js19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/utility.js b/src/utility.js
index fc5f7f88..f0d8e37e 100644
--- a/src/utility.js
+++ b/src/utility.js
@@ -91,25 +91,6 @@ function zeros(size) {
return ret;
}
-function walkJSON(item, func) {
- if (item.length) {
- for (var x = 0; x < item.length; x++) {
- var y = item[x];
- if (y && typeof y === 'object') {
- walkJSON(y, func);
- }
- }
- } else {
- func(item);
- for (x in item) {
- var y = item[x];
- if (y && typeof y === 'object') {
- walkJSON(y, func);
- }
- }
- }
-}
-
function keys(x) {
var ret = [];
for (a in x) ret.push(a);