summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-24 18:33:50 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-24 18:33:50 +0000
commit5dd2b7102c42cd31a0fec424addbdeaeefb235ac (patch)
treec04ed9798be30923eec668e9deed5f377e67b02d /range.c
parentc9aad4c098193cad0440228595c85aadc44bebe5 (diff)
* gcc -Wall clean-up.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'range.c')
-rw-r--r--range.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/range.c b/range.c
index 9a73c867a1..a7f553be57 100644
--- a/range.c
+++ b/range.c
@@ -109,17 +109,6 @@ range_eq(range, obj)
}
static int
-r_eq(a, b)
- VALUE a, b;
-{
- if (a == b) return Qtrue;
-
- if (rb_funcall(a, id_cmp, 1, b) == INT2FIX(0))
- return Qtrue;
- return Qfalse;
-}
-
-static int
r_lt(a, b)
VALUE a, b;
{
@@ -142,17 +131,6 @@ r_le(a, b)
}
-static int
-r_gt(a,b)
- VALUE a, b;
-{
- VALUE r = rb_funcall(a, id_cmp, 1, b);
-
- if (NIL_P(r)) return Qfalse;
- if (rb_cmpint(r, a, b) > 0) return Qtrue;
- return Qfalse;
-}
-
static VALUE
range_eql(range, obj)
VALUE range, obj;
@@ -383,7 +361,6 @@ rb_range_beg_len(range, begp, lenp, len, err)
len = end - beg;
if (len < 0) goto out_of_range;
- length_set:
*begp = beg;
*lenp = len;
return Qtrue;