diff --git a/4chan_x.js b/4chan_x.js index 9b3fe3914..18f7d3ee4 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -256,16 +256,6 @@ return n; } }, - slice: function(arr, id) { - var el, i, _len; - for (i = 0, _len = arr.length; i < _len; i++) { - el = arr[i]; - if (id === el.id) { - arr.splice(i, 1); - return arr; - } - } - }, x: function(path, root) { if (root == null) { root = d.body; diff --git a/script.coffee b/script.coffee index d88dbba28..17f3d8e9a 100644 --- a/script.coffee +++ b/script.coffee @@ -145,12 +145,6 @@ $.extend $, GM_getValue name, config[name][0] zeroPad: (n) -> if n < 10 then '0' + n else n - slice: (arr, id) -> - # do I actually need this? - for el, i in arr - if id == el.id - arr.splice i, 1 - return arr x: (path, root=d.body) -> d.evaluate(path, root, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null). singleNodeValue