Bug 1060934 - Remove SettingsQueue.jsm file; r=fabrice a=2.1
authorKyle Machulis <kyle@nonpolynomial.com>
Sun, 31 Aug 2014 14:42:47 -0700
changeset 224362 29db6410d20f9703b9a26bc4732db5b5225224d7
parent 224361 08292b1362fb3667048ed6fe4e6e9de242ccc727
child 224363 935836821a9dd58a536f309e351e32c6eed41674
push id3979
push userraliiev@mozilla.com
push dateMon, 13 Oct 2014 16:35:44 +0000
treeherdermozilla-beta@30f2cc610691 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice, 2
bugs1060934
milestone34.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1060934 - Remove SettingsQueue.jsm file; r=fabrice a=2.1
dom/settings/SettingsQueue.jsm
deleted file mode 100644
--- a/dom/settings/SettingsQueue.jsm
+++ /dev/null
@@ -1,30 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this file,
- * You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-this.EXPORTED_SYMBOLS = ["Queue"];
-
-this.Queue = function Queue() {
-  this._queue = [];
-  this._index = 0;
-}
-
-Queue.prototype = {
-  getLength: function() { return (this._queue.length - this._index); },
-
-  isEmpty: function() { return (this._queue.length == 0); },
-
-  enqueue: function(item) { this._queue.push(item); },
-
-  dequeue: function() {
-    if(this.isEmpty())
-      return undefined;
-
-    var item = this._queue[this._index];
-    if (++this._index * 2 >= this._queue.length){
-      this._queue  = this._queue.slice(this._index);
-      this._index = 0;
-    }
-    return item;
-  }
-}