From 9b0246b179694d2d13298c8ff6c701b806e68aa6 Mon Sep 17 00:00:00 2001 From: yorkie Date: Sun, 11 Sep 2016 09:06:39 +0800 Subject: [PATCH] timers: remove unreachable code PR-URL: https://github.com/nodejs/node/pull/8487 Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Anna Henningsen Reviewed-By: Jeremiah Senkpiel --- lib/timers.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/timers.js b/lib/timers.js index f6ecf3e100a81e..574fb810d61e02 100644 --- a/lib/timers.js +++ b/lib/timers.js @@ -333,7 +333,6 @@ exports.setTimeout = function(callback, after) { var ontimeout = callback; switch (length) { // fast cases - case 0: case 1: case 2: break; @@ -392,7 +391,6 @@ exports.setInterval = function(callback, repeat) { var length = arguments.length; var ontimeout = callback; switch (length) { - case 0: case 1: case 2: break; @@ -605,7 +603,6 @@ exports.setImmediate = function(callback, arg1, arg2, arg3) { switch (arguments.length) { // fast cases - case 0: case 1: break; case 2: