From 416499c872ba3db45a4dd4b88e015b679931c15f Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Fri, 3 Apr 2015 02:28:45 +0300 Subject: [PATCH] timers: remove redundant code PR-URL: https://github.com/iojs/io.js/pull/1330 Reviewed-by: Trevor Norris --- lib/timers.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/lib/timers.js b/lib/timers.js index dea10136370a09..27c4b0717653ca 100644 --- a/lib/timers.js +++ b/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)) { - insert(item, msecs); - } else { - item._idleStart = Timer.now(); - L.append(list, item); - } - } + if (msecs >= 0) + insert(item, msecs); };