summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-20 11:00:39 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-20 11:00:39 +0000
commit515ac69f95aedfb7b2dac2e031dd7d1d600f11a8 (patch)
tree1391c061202d878f4cb804b3527be4138e17c3bb /eval.c
parent19e687ff03263ea27c91a99db4f1b7a9b4c9006a (diff)
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
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/eval.c b/eval.c
index b60d760..e07affe 100644
--- a/eval.c
+++ b/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)
{