Project

General

Profile

« Previous | Next » 

Revision 56132b13

Added by h.shirosaki (Hiroshi Shirosaki) almost 13 years ago

array.c: refactoring of rb_ary_delete_same()

  • array.c (ary_resize_smaller): new function to resize array.

  • array.c (rb_ary_delete): refactoring to extract a function.

  • array.c (rb_ary_delete_same): refactoring.
    It renames function, reduces duplicated code and removes unused
    code.

  • gc.c (wmap_final_func): follow the above change.

  • internal.h (rb_ary_delete_same): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e