From ea6510b8622fd09a639fda2d58939180ebd3ae1c Mon Sep 17 00:00:00 2001 From: yui-knk Date: Wed, 21 Dec 2016 13:26:16 +0000 Subject: [PATCH] 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 --- numeric.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/numeric.c b/numeric.c index 3c380cb76b..01f9f45420 100644 --- a/numeric.c +++ b/numeric.c @@ -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;