Skip to content

Commit 35fc19f

Browse files
committed
enumerator.c: Remove unused IDs
1 parent 0f922ed commit 35fc19f

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

enumerator.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,9 @@
162162
*/
163163
VALUE rb_cEnumerator;
164164
static VALUE rb_cLazy;
165-
static ID id_rewind, id_new, id_to_enum, id_each_entry;
165+
static ID id_rewind, id_to_enum, id_each_entry;
166166
static ID id_next, id_result, id_receiver, id_arguments, id_memo, id_method, id_force;
167-
static ID id_begin, id_end, id_step, id_exclude_end;
168-
static VALUE sym_each, sym_cycle, sym_yield;
167+
static VALUE sym_each, sym_yield;
169168

170169
static VALUE lazy_use_super_method;
171170

@@ -4727,7 +4726,6 @@ void
47274726
Init_Enumerator(void)
47284727
{
47294728
id_rewind = rb_intern_const("rewind");
4730-
id_new = rb_intern_const("new");
47314729
id_next = rb_intern_const("next");
47324730
id_result = rb_intern_const("result");
47334731
id_receiver = rb_intern_const("receiver");
@@ -4737,12 +4735,7 @@ Init_Enumerator(void)
47374735
id_force = rb_intern_const("force");
47384736
id_to_enum = rb_intern_const("to_enum");
47394737
id_each_entry = rb_intern_const("each_entry");
4740-
id_begin = rb_intern_const("begin");
4741-
id_end = rb_intern_const("end");
4742-
id_step = rb_intern_const("step");
4743-
id_exclude_end = rb_intern_const("exclude_end");
47444738
sym_each = ID2SYM(id_each);
4745-
sym_cycle = ID2SYM(rb_intern_const("cycle"));
47464739
sym_yield = ID2SYM(rb_intern_const("yield"));
47474740

47484741
InitVM(Enumerator);

0 commit comments

Comments
 (0)