summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/eval.c b/eval.c
index dec628204a..8fc06da910 100644
--- a/eval.c
+++ b/eval.c
@@ -492,38 +492,6 @@ rb_f_raise(int argc, VALUE *argv)
return Qnil; /* not reached */
}
-struct rescue_funcall_args {
- VALUE obj;
- ID id;
- int argc;
- VALUE *argv;
-};
-
-static VALUE
-check_funcall(struct rescue_funcall_args *args)
-{
- return rb_funcall2(args->obj, args->id, args->argc, args->argv);
-}
-
-static VALUE
-check_failed(VALUE data)
-{
- return data;
-}
-
-VALUE
-rb_check_funcall(VALUE obj, ID id, int argc, VALUE *argv)
-{
- struct rescue_funcall_args args;
-
- args.obj = obj;
- args.id = id;
- args.argc = argc;
- args.argv = argv;
- return rb_rescue2(check_funcall, (VALUE)&args, check_failed, Qundef,
- rb_eNoMethodError, (VALUE)0);
-}
-
static VALUE
make_exception(int argc, VALUE *argv, int isstr)
{