Skip to content

Commit

Permalink
timers: remove unreachable code
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
yorkie authored and Fishrock123 committed Oct 11, 2016
1 parent 71dd4c1 commit 02da155
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 02da155

Please sign in to comment.