aboutsummaryrefslogtreecommitdiffstats
path: root/enum.c
diff options
context:
space:
mode:
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/enum.c b/enum.c
index 3fc45b2055..914faeffbf 100644
--- a/enum.c
+++ b/enum.c
@@ -1486,13 +1486,6 @@ enum_none(VALUE obj)
return memo->v1;
}
-#define OPTIMIZED_CMP(a, b, data) \
- ((FIXNUM_P(a) && FIXNUM_P(b) && CMP_OPTIMIZABLE(data, Fixnum)) ? \
- (((long)a > (long)b) ? 1 : ((long)a < (long)b) ? -1 : 0) : \
- (STRING_P(a) && STRING_P(b) && CMP_OPTIMIZABLE(data, String)) ? \
- rb_str_cmp(a, b) : \
- rb_cmpint(rb_funcallv(a, id_cmp, 1, &b), a, b))
-
struct min_t {
VALUE min;
struct cmp_opt_data cmp_opt;