ruby-changes:47261
From: yugui <ko1@a...>
Date: Thu, 20 Jul 2017 20:00:46 +0900 (JST)
Subject: [ruby-changes:47261] yugui:r59376 (trunk): Remove dead code
yugui 2017-07-20 20:00:39 +0900 (Thu, 20 Jul 2017) New Revision: 59376 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59376 Log: Remove dead code * eval.c (errinfo_setter): dead for 10 years since r13091. (rb_rubylevel_errinfo): not used and not exported. usually removed or hidden by linker. Modified files: trunk/eval.c Index: eval.c =================================================================== --- eval.c (revision 59375) +++ eval.c (revision 59376) @@ -1565,25 +1565,6 @@ errinfo_getter(ID id) https://github.com/ruby/ruby/blob/trunk/eval.c#L1565 return get_errinfo(); } -#if 0 -static void -errinfo_setter(VALUE val, ID id, VALUE *var) -{ - if (!NIL_P(val) && !rb_obj_is_kind_of(val, rb_eException)) { - rb_raise(rb_eTypeError, "assigning non-exception to $!"); - } - else { - const VALUE *ptr = errinfo_place(GET_THREAD()); - if (ptr) { - *ptr = val; - } - else { - rb_raise(rb_eRuntimeError, "errinfo_setter: not in rescue clause."); - } - } -} -#endif - VALUE rb_errinfo(void) { @@ -1600,12 +1581,6 @@ rb_set_errinfo(VALUE err) https://github.com/ruby/ruby/blob/trunk/eval.c#L1581 GET_THREAD()->ec.errinfo = err; } -VALUE -rb_rubylevel_errinfo(void) -{ - return get_errinfo(); -} - static VALUE errat_getter(ID id) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/