From b0db6b2c3e980ea989dd3d9d0c030c9e016c07d0 Mon Sep 17 00:00:00 2001 From: John Foerch Date: Wed, 1 Feb 2012 02:06:32 -0500 Subject: [PATCH] string_hashset: removed --- modules/utils.js | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/modules/utils.js b/modules/utils.js index 90d11ec..04108c0 100644 --- a/modules/utils.js +++ b/modules/utils.js @@ -9,38 +9,6 @@ require("io"); -function string_hashset () {} -string_hashset.prototype = { - constructor: string_hashset, - - add: function (s) { - this["-" + s] = true; - }, - - contains: function (s) { - return (("-" + s) in this); - }, - - remove: function (s) { - delete this["-" + s]; - }, - - for_each: function (f) { - for (var i in this) { - if (i[0] == "-") - f(i.slice(1)); - } - }, - - iterator: function () { - for (let k in this) { - if (i[0] == "-") - yield i.slice(1); - } - } -}; - - // Put the string on the clipboard function writeToClipboard (str) { var gClipboardHelper = Cc["@mozilla.org/widget/clipboardhelper;1"] -- 2.11.4.GIT