mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
19e687ff03
commit
515ac69f95
1 changed files with 0 additions and 25 deletions
25
eval.c
25
eval.c
|
@ -1565,25 +1565,6 @@ errinfo_getter(ID id)
|
|||
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)
|
|||
GET_THREAD()->ec.errinfo = err;
|
||||
}
|
||||
|
||||
VALUE
|
||||
rb_rubylevel_errinfo(void)
|
||||
{
|
||||
return get_errinfo();
|
||||
}
|
||||
|
||||
static VALUE
|
||||
errat_getter(ID id)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue