diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-12-11 17:39:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-11 17:39:08 +0800 |
commit | c43118be4f8938a3c1d12f836d80c334cba76656 (patch) | |
tree | 943dbf9ac7393c0024b120e115142217c87c93c1 /lib/utils.js | |
parent | 93f3b2b114877af17db219e501ae4551df61738d (diff) | |
download | tracifyjs-c43118be4f8938a3c1d12f836d80c334cba76656.tar.gz tracifyjs-c43118be4f8938a3c1d12f836d80c334cba76656.zip |
remove unused code (#2579)
fixes #2577
Diffstat (limited to 'lib/utils.js')
-rw-r--r-- | lib/utils.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/utils.js b/lib/utils.js index 76306919..102c4789 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -43,10 +43,6 @@ "use strict"; -function slice(a, start) { - return Array.prototype.slice.call(a, start || 0); -}; - function characters(str) { return str.split(""); }; @@ -214,18 +210,6 @@ function mergeSort(array, cmp) { return _ms(array); }; -function set_difference(a, b) { - return a.filter(function(el){ - return b.indexOf(el) < 0; - }); -}; - -function set_intersection(a, b) { - return a.filter(function(el){ - return b.indexOf(el) >= 0; - }); -}; - // this function is taken from Acorn [1], written by Marijn Haverbeke // [1] https://github.com/marijnh/acorn function makePredicate(words) { |