clean up lib/parse.js (#2047)

- remove unused definitions
- replace `array_to_hash()`
This commit is contained in:
Alex Lam S.L
2017-06-03 14:00:59 +08:00
committed by GitHub
parent f330ab743a
commit 1743621889
2 changed files with 2 additions and 21 deletions

View File

@@ -43,13 +43,6 @@
"use strict";
function array_to_hash(a) {
var ret = Object.create(null);
for (var i = 0; i < a.length; ++i)
ret[a[i]] = true;
return ret;
};
function slice(a, start) {
return Array.prototype.slice.call(a, start || 0);
};