diff --git a/proc.c b/proc.c index f350942101..d72e1a9254 100644 --- a/proc.c +++ b/proc.c @@ -1207,6 +1207,14 @@ proc_hash(VALUE self) * an indication of where the proc was defined. */ +static VALUE +proc_to_s(VALUE self) +{ + const rb_proc_t *proc; + GetProcPtr(self, proc); + return proc_to_s_(self, proc); +} + static VALUE proc_to_s_(VALUE self, const rb_proc_t *proc) { @@ -1250,14 +1258,6 @@ proc_to_s_(VALUE self, const rb_proc_t *proc) return str; } -static VALUE -proc_to_s(VALUE self) -{ - const rb_proc_t *proc; - GetProcPtr(self, proc); - return proc_to_s_(self, proc); -} - /* * call-seq: * prc.to_proc -> proc