From c1124ff6b631ff4bed8366dd24129c39982a9ad1 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 7 Aug 2017 03:45:32 +0000 Subject: [PATCH] enum.c: use predefined IDs git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- enum.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/enum.c b/enum.c index d9b9943030..a1b85f64bc 100644 --- a/enum.c +++ b/enum.c @@ -19,13 +19,13 @@ VALUE rb_mEnumerable; static ID id_next; static ID id_div; -static ID id_call; -static ID id_size; #define id_each idEach #define id_eqq idEqq #define id_cmp idCmp #define id_lshift idLTLT +#define id_call idCall +#define id_size idSize VALUE rb_enum_values_pack(int argc, const VALUE *argv) @@ -3970,7 +3970,5 @@ Init_Enumerable(void) rb_define_method(rb_mEnumerable, "uniq", enum_uniq, 0); id_next = rb_intern("next"); - id_call = rb_intern("call"); - id_size = rb_intern("size"); id_div = rb_intern("div"); }