From b453fc2cb91eec4527f4039a965f27cc7715c365 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 16 Nov 2017 08:53:49 +0000 Subject: [PATCH] make a func static. * vm_method.c (rb_resolve_refined_method_callable): make it static. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- method.h | 1 - vm_method.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/method.h b/method.h index 2547a2ab5b..0ec1a09759 100644 --- a/method.h +++ b/method.h @@ -194,7 +194,6 @@ const rb_method_entry_t *rb_resolve_refined_method(VALUE refinements, const rb_m const rb_callable_method_entry_t *rb_callable_method_entry(VALUE klass, ID id); const rb_callable_method_entry_t *rb_callable_method_entry_with_refinements(VALUE klass, ID id, VALUE *defined_class); const rb_callable_method_entry_t *rb_callable_method_entry_without_refinements(VALUE klass, ID id, VALUE *defined_class); -const rb_callable_method_entry_t *rb_resolve_refined_method_callable(VALUE refinements, const rb_callable_method_entry_t *me); int rb_method_entry_arity(const rb_method_entry_t *me); int rb_method_entry_eq(const rb_method_entry_t *m1, const rb_method_entry_t *m2); diff --git a/vm_method.c b/vm_method.c index c854164a1b..edbe6038dd 100644 --- a/vm_method.c +++ b/vm_method.c @@ -936,7 +936,7 @@ rb_resolve_refined_method(VALUE refinements, const rb_method_entry_t *me) return resolve_refined_method(refinements, me, NULL); } -const rb_callable_method_entry_t * +static const rb_callable_method_entry_t * rb_resolve_refined_method_callable(VALUE refinements, const rb_callable_method_entry_t *me) { VALUE defined_class = me->defined_class;