Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben Bridgewater authored and petkaantonov committed Dec 6, 2016
1 parent fdd44ee commit e91d18b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
6 changes: 0 additions & 6 deletions src/async.js
Expand Up @@ -132,12 +132,6 @@ if (!util.hasDevTools) {
};
}

Async.prototype.invokeFirst = function (fn, receiver, arg) {
ASSERT(arguments.length === 3);
this._normalQueue.unshift(fn, receiver, arg);
this._queueTick();
};

Async.prototype._drainQueue = function(queue) {
while (queue.length() > 0) {
var fn = queue.shift();
Expand Down
17 changes: 0 additions & 17 deletions src/queue.js
Expand Up @@ -25,23 +25,6 @@ Queue.prototype._pushOne = function (arg) {
this._length = length + 1;
};

Queue.prototype._unshiftOne = function(value) {
var capacity = this._capacity;
this._checkCapacity(this.length() + 1);
var front = this._front;
var i = (((( front - 1 ) &
( capacity - 1) ) ^ capacity ) - capacity );
this[i] = value;
this._front = i;
this._length = this.length() + 1;
};

Queue.prototype.unshift = function(fn, receiver, arg) {
this._unshiftOne(arg);
this._unshiftOne(receiver);
this._unshiftOne(fn);
};

Queue.prototype.push = function (fn, receiver, arg) {
ASSERT(arguments.length === 3);
ASSERT(typeof fn === "function");
Expand Down

0 comments on commit e91d18b

Please sign in to comment.