mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
numeric.c: remove not used lines
* numeric.c (rb_num_get_rounding_option): remove not used lines. After r57130 these lines are never reached. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5518b5c21a
commit
ea6510b862
1 changed files with 1 additions and 4 deletions
|
@ -230,10 +230,7 @@ rb_num_get_rounding_option(VALUE opts)
|
|||
break;
|
||||
}
|
||||
invalid:
|
||||
if (NIL_P(rounding))
|
||||
rb_raise(rb_eArgError, "invalid rounding mode: nil");
|
||||
else
|
||||
rb_raise(rb_eArgError, "invalid rounding mode: % "PRIsVALUE, rounding);
|
||||
rb_raise(rb_eArgError, "invalid rounding mode: % "PRIsVALUE, rounding);
|
||||
}
|
||||
noopt:
|
||||
return RUBY_NUM_ROUND_DEFAULT;
|
||||
|
|
Loading…
Add table
Reference in a new issue