summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
authormichal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-07-02 09:58:13 +0000
committermichal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-07-02 09:58:13 +0000
commit46934759bca1d214e70ee1ed7db781202dba953a (patch)
tree6e19c7589dc0277ea8ae130c04244d845fd3a4fc /range.c
parent39e205994c917907055615146d14b3ce3054c140 (diff)
object.c: rb_Integer reformat, nil#to_f added to rb_define_method.
parse.y: Clean unused vars. range.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'range.c')
-rw-r--r--range.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/range.c b/range.c
index 4db96f4..771afcb 100644
--- a/range.c
+++ b/range.c
@@ -384,11 +384,8 @@ range_min(range)
VALUE range;
{
- VALUE b, e, step;
- long unit;
-
- b = rb_ivar_get(range, id_beg);
- e = rb_ivar_get(range, id_end);
+ 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;
@@ -398,11 +395,8 @@ static VALUE
range_max(range)
VALUE range;
{
- VALUE b, e, step;
- long unit;
-
- b = rb_ivar_get(range, id_beg);
- e = rb_ivar_get(range, id_end);
+ 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;