Browse Source

timers: remove unreachable code

PR-URL: https://github.com/nodejs/node/pull/8487
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
v6.x
yorkie 8 years ago
committed by Jeremiah Senkpiel
parent
commit
02da155e4b
  1. 3
      lib/timers.js

3
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:

Loading…
Cancel
Save