ruby-changes:45068
From: yui-knk <ko1@a...>
Date: Wed, 21 Dec 2016 22:26:22 +0900 (JST)
Subject: [ruby-changes:45068] yui-knk:r57141 (trunk): numeric.c: remove not used lines
yui-knk 2016-12-21 22:26:16 +0900 (Wed, 21 Dec 2016) New Revision: 57141 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57141 Log: numeric.c: remove not used lines * numeric.c (rb_num_get_rounding_option): remove not used lines. After r57130 these lines are never reached. Modified files: trunk/numeric.c Index: numeric.c =================================================================== --- numeric.c (revision 57140) +++ numeric.c (revision 57141) @@ -230,10 +230,7 @@ rb_num_get_rounding_option(VALUE opts) https://github.com/ruby/ruby/blob/trunk/numeric.c#L230 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/