mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Reuse ins_methods_type_i function
This commit is contained in:
parent
5e554d30ba
commit
ee8bcbf405
Notes:
git
2022-10-14 18:31:38 +09:00
1 changed files with 1 additions and 4 deletions
5
class.c
5
class.c
|
@ -1639,10 +1639,7 @@ ins_methods_pub_i(st_data_t name, st_data_t type, st_data_t ary)
|
|||
static int
|
||||
ins_methods_undef_i(st_data_t name, st_data_t type, st_data_t ary)
|
||||
{
|
||||
if ((rb_method_visibility_t)type == METHOD_VISI_UNDEF) {
|
||||
ins_methods_push(name, ary);
|
||||
}
|
||||
return ST_CONTINUE;
|
||||
return ins_methods_type_i(name, type, ary, METHOD_VISI_UNDEF);
|
||||
}
|
||||
|
||||
struct method_entry_arg {
|
||||
|
|
Loading…
Reference in a new issue