Project

General

Profile

Actions

Feature #13502

open

remove unused Array#to_s implementation

Added by colby (Colby Swandale) over 7 years ago. Updated over 3 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:80840]

Description

Hello Ruby Team!

First time i've make a commit request, hopefully not the last :)

While browsing the src of ruby, specifically array.c i noticed that Array#to_s is an alias of Array#inspect but the implementation of Array#to_s still remains in src.

I tried to find a reason why the implementation still remains in src without any luck but let me know if there is a reason why.

  • array.c: remove rb_ary_to_s function and remove static keyword from rb_ary_inspect
  • include/ruby/intern.h: declare rb_ary_inspect and alias rb_ary_to_s to rb_ary_inspect

Thanks in advance.


Files

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0