summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-01 05:20:06 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-01 05:20:06 +0000
commit2bbffcd6a401f047beda6ec4aadacc2c899afec6 (patch)
tree5a3506d396ab6878589a792d4719095a631a5658 /range.c
parent6fafbfd63e9f56350e06910bbac70bf7ff0d5df0 (diff)
downloadruby-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.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/range.c b/range.c
index 6bc8dcda4a..b4b200c7a2 100644
--- a/range.c
+++ b/range.c
@@ -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);
-
}