summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/array.c b/array.c
index 9f6362d3d9..7b3dc52129 100644
--- a/array.c
+++ b/array.c
@@ -1029,20 +1029,6 @@ rb_ary_reverse_m(ary)
return rb_ary_reverse(rb_ary_dup(ary));
}
-int
-rb_cmpint(cmp)
- VALUE cmp;
-{
- if (FIXNUM_P(cmp)) return FIX2INT(cmp);
- if (TYPE(cmp) == T_BIGNUM) {
- if (RBIGNUM(cmp)->sign) return 1;
- return -1;
- }
- if (RTEST(rb_funcall(cmp, '>', 1, INT2FIX(0)))) return 1;
- if (RTEST(rb_funcall(cmp, '<', 1, INT2FIX(0)))) return -1;
- return 0;
-}
-
static int
sort_1(a, b)
VALUE *a, *b;