diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-04-01 23:06:45 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-04-01 23:09:05 -0700 |
commit | 1b475fcd10b4f6fe6784c016e3cdeff724229b1d (patch) | |
tree | c4b836e3fc641dedb64d836155528f68346f956d /array.c | |
parent | 6c55c3eb7f20b4df685f263c6fd121883b5bf113 (diff) |
Remove an unneeded function copy
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -1787,7 +1787,7 @@ ary_ensure_room_for_unshift(VALUE ary, int argc) * Related: #push, #pop, #shift. */ -static VALUE +VALUE rb_ary_unshift_m(int argc, VALUE *argv, VALUE ary) { long len = RARRAY_LEN(ary); @@ -1804,17 +1804,10 @@ rb_ary_unshift_m(int argc, VALUE *argv, VALUE ary) return ary; } -/* non-static for yjit */ -VALUE -rb_yjit_rb_ary_unshift_m(int argc, VALUE *argv, VALUE ary) -{ - return rb_ary_unshift_m(argc, argv, ary); -} - VALUE rb_ary_unshift(VALUE ary, VALUE item) { - return rb_ary_unshift_m(1,&item,ary); + return rb_ary_unshift_m(1, &item, ary); } /* faster version - use this if you don't need to treat negative offset */ |