diff options
author | S-H-GAMELINKS <gamelinks007@gmail.com> | 2022-10-13 00:09:17 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-10-14 18:31:15 +0900 |
commit | ee8bcbf40578c0c4e60063a3e0c86439a6891131 (patch) | |
tree | 82f9f20216059194303d5e4835d59e2a1ddf3813 /class.c | |
parent | 5e554d30ba747ad1b59335efaa63c7e3c94bfad0 (diff) |
Reuse ins_methods_type_i function
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6534
Diffstat (limited to 'class.c')
-rw-r--r-- | class.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 { |