Skip to content

Commit

Permalink
Remove mrb_ary_len function. Use RARRAY_LEN instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Aug 11, 2017
1 parent 8f6b212 commit 67e2ddd
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions include/mruby/array.h
Original file line number Diff line number Diff line change
Expand Up @@ -276,14 +276,6 @@ MRB_API mrb_value mrb_ary_join(mrb_state *mrb, mrb_value ary, mrb_value sep);
*/
MRB_API mrb_value mrb_ary_resize(mrb_state *mrb, mrb_value ary, mrb_int new_len);

static inline mrb_int
mrb_ary_len(mrb_state *mrb, mrb_value ary)
{
(void)mrb;
mrb_assert(mrb_array_p(ary));
return RARRAY_LEN(ary);
}

static inline mrb_value
ary_elt(mrb_value ary, mrb_int offset)
{
Expand Down

0 comments on commit 67e2ddd

Please sign in to comment.