diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-01 05:20:06 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-01 05:20:06 +0000 |
commit | 2bbffcd6a401f047beda6ec4aadacc2c899afec6 (patch) | |
tree | 5a3506d396ab6878589a792d4719095a631a5658 /range.c | |
parent | 6fafbfd63e9f56350e06910bbac70bf7ff0d5df0 (diff) | |
download | ruby-2bbffcd6a401f047beda6ec4aadacc2c899afec6.tar.gz |
* insns.def (concatarray, splatarray): use to_a instead of
to_splat.
* insnhelper.ci (caller_setup_args): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'range.c')
-rw-r--r-- | range.c | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -652,19 +652,6 @@ range_to_s(VALUE range) /* * call-seq: - * rng.to_splat => array - * - * Convert this range object to an array to splat. - */ - -static VALUE -range_to_splat(VALUE range) -{ - return rb_convert_type(range, T_ARRAY, "Array", "to_a"); -} - -/* - * call-seq: * rng.inspect => string * * Convert this range object to a printable form (using @@ -908,12 +895,10 @@ Init_Range(void) rb_define_method(rb_cRange, "max", range_max, 0); rb_define_method(rb_cRange, "to_s", range_to_s, 0); rb_define_method(rb_cRange, "inspect", range_inspect, 0); - rb_define_method(rb_cRange, "to_splat", range_to_splat, 0); rb_define_method(rb_cRange, "exclude_end?", range_exclude_end_p, 0); rb_define_method(rb_cRange, "member?", range_include, 1); rb_define_method(rb_cRange, "include?", range_include, 1); rb_define_method(rb_cRange, "cover?", range_cover, 1); - } |