summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-03-20 06:27:22 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-03-20 06:27:22 +0000
commit85dd7bb0ef28fe4ce63641e653d92e42327b0207 (patch)
treebcd1e5b816c1a7cdc06f31f28cd967f6b78e9a96 /range.c
parent5782e5b0006ca5f941e8cdd7101ca07218c9d816 (diff)
* eval.c (load_dyna): clear ruby_errinfo. (ruby-bugs-ja PR#409)
* io.c (read_all): make str empty if given. (ruby-bugs-ja PR#408) * io.c (io_read): ditto. * io.c (rb_io_sysread): ditto. * range.c: do not override min and max. * sprintf.c (remove_sign_bits): octal left most digit for negative numbers may be '3'. (ruby-bugs-ja PR#407) * sprintf.c (rb_f_sprintf): should prefix sign bits if bignum is negative, using sign_bits(). * eval.c (avalue_to_mrhs): split argument passing and assignment conversion. * eval.c (svalue_to_mrhs): ditto. * eval.c (avalue_to_svalue): avalue_to_svalue([[1,2]]) should be [[1,2]], not [1,2] to wrap-around. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'range.c')
-rw-r--r--range.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/range.c b/range.c
index 97b7d68..3fa5bca 100644
--- a/range.c
+++ b/range.c
@@ -399,29 +399,6 @@ rb_range_beg_len(range, begp, lenp, len, err)
}
static VALUE
-range_min(range)
- VALUE range;
-
-{
- VALUE b = rb_ivar_get(range, id_beg);
- VALUE e = rb_ivar_get(range, id_end);
-
- if (r_le(b, e)) return b;
- return e;
-}
-
-static VALUE
-range_max(range)
- VALUE range;
-{
- VALUE b = rb_ivar_get(range, id_beg);
- VALUE e = rb_ivar_get(range, id_end);
-
- if (r_gt(b, e)) return b;
- return e;
-}
-
-static VALUE
range_to_s(range)
VALUE range;
{
@@ -518,8 +495,6 @@ Init_Range()
rb_define_method(rb_cRange, "last", range_last, 0);
rb_define_method(rb_cRange, "begin", range_first, 0);
rb_define_method(rb_cRange, "end", range_last, 0);
- rb_define_method(rb_cRange, "min", range_min, 0);
- 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_alias(rb_cRange, "to_ary", "to_a");