Skip to content

Commit

Permalink
timers: remove unreachable code
Browse files Browse the repository at this point in the history
PR-URL: nodejs#8487
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Jeremiah Senkpiel <[email protected]>
  • Loading branch information
yorkie committed Sep 15, 2016
1 parent 68bf02d commit 9b0246b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ exports.setTimeout = function(callback, after) {
var ontimeout = callback;
switch (length) {
// fast cases
case 0:
case 1:
case 2:
break;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -605,7 +603,6 @@ exports.setImmediate = function(callback, arg1, arg2, arg3) {

switch (arguments.length) {
// fast cases
case 0:
case 1:
break;
case 2:
Expand Down

0 comments on commit 9b0246b

Please sign in to comment.