Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
Remove unneeded default case(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Jun 28, 2015
1 parent 4fbe7ae commit 32b9659
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/Visitor/Expression.php
Original file line number Diff line number Diff line change
Expand Up @@ -472,9 +472,6 @@ protected function passBinaryOpDiv(Node\Expr\BinaryOp\Div $expr)
return new CompiledExpression(CompiledExpression::LNUMBER, 0);
}
break;
default:
//
break;
}

$expression = new Expression($expr->right, $this->context);
Expand All @@ -493,9 +490,6 @@ protected function passBinaryOpDiv(Node\Expr\BinaryOp\Div $expr)
return new CompiledExpression(CompiledExpression::UNKNOWN);
}
break;
default:
//
break;
}

switch ($left->getType()) {
Expand All @@ -521,14 +515,8 @@ protected function passBinaryOpDiv(Node\Expr\BinaryOp\Div $expr)
case CompiledExpression::DNUMBER:
return CompiledExpression::fromZvalValue($left->getValue() / $right->getValue());
break;
default:
//
break;
}
break;
default:
//
break;
}

return new CompiledExpression(CompiledExpression::UNKNOWN);
Expand Down

0 comments on commit 32b9659

Please sign in to comment.