Browse Source

timers: remove redundant code

PR-URL: https://github.com/iojs/io.js/pull/1330
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
v1.8.0-commit
Fedor Indutny 10 years ago
parent
commit
416499c872
  1. 9
      lib/timers.js

9
lib/timers.js

@ -157,15 +157,8 @@ exports.enroll = function(item, msecs) {
// it will reset its timeout.
exports.active = function(item) {
var msecs = item._idleTimeout;
if (msecs >= 0) {
var list = lists[msecs];
if (!list || L.isEmpty(list)) {
if (msecs >= 0)
insert(item, msecs);
} else {
item._idleStart = Timer.now();
L.append(list, item);
}
}
};

Loading…
Cancel
Save