Skip to content

Commit 7ee127d

Browse files
committed
Get rid of imemo_ast
It has been marked as obsolete for a while and I see no reason to keep it.
1 parent d4020dd commit 7ee127d

File tree

6 files changed

+0
-18
lines changed

6 files changed

+0
-18
lines changed

debug_counter.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,6 @@ RB_DEBUG_COUNTER(obj_imemo_ment)
305305
RB_DEBUG_COUNTER(obj_imemo_iseq)
306306
RB_DEBUG_COUNTER(obj_imemo_env)
307307
RB_DEBUG_COUNTER(obj_imemo_tmpbuf)
308-
RB_DEBUG_COUNTER(obj_imemo_ast)
309308
RB_DEBUG_COUNTER(obj_imemo_cref)
310309
RB_DEBUG_COUNTER(obj_imemo_svar)
311310
RB_DEBUG_COUNTER(obj_imemo_throw_data)

ext/objspace/objspace.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,6 @@ count_imemo_objects(int argc, VALUE *argv, VALUE self)
500500
INIT_IMEMO_TYPE_ID(imemo_ment);
501501
INIT_IMEMO_TYPE_ID(imemo_iseq);
502502
INIT_IMEMO_TYPE_ID(imemo_tmpbuf);
503-
INIT_IMEMO_TYPE_ID(imemo_ast);
504503
INIT_IMEMO_TYPE_ID(imemo_callinfo);
505504
INIT_IMEMO_TYPE_ID(imemo_callcache);
506505
INIT_IMEMO_TYPE_ID(imemo_constcache);

imemo.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ rb_imemo_name(enum imemo_type type)
1616
// put no default case to get a warning if an imemo type is missing
1717
switch (type) {
1818
#define IMEMO_NAME(x) case imemo_##x: return #x;
19-
IMEMO_NAME(ast);
2019
IMEMO_NAME(callcache);
2120
IMEMO_NAME(callinfo);
2221
IMEMO_NAME(constcache);
@@ -220,10 +219,6 @@ rb_imemo_memsize(VALUE obj)
220219
{
221220
size_t size = 0;
222221
switch (imemo_type(obj)) {
223-
case imemo_ast:
224-
rb_bug("imemo_ast is obsolete");
225-
226-
break;
227222
case imemo_callcache:
228223
break;
229224
case imemo_callinfo:
@@ -336,10 +331,6 @@ void
336331
rb_imemo_mark_and_move(VALUE obj, bool reference_updating)
337332
{
338333
switch (imemo_type(obj)) {
339-
case imemo_ast:
340-
rb_bug("imemo_ast is obsolete");
341-
342-
break;
343334
case imemo_callcache: {
344335
/* cc is callcache.
345336
*
@@ -600,10 +591,6 @@ void
600591
rb_imemo_free(VALUE obj)
601592
{
602593
switch (imemo_type(obj)) {
603-
case imemo_ast:
604-
rb_bug("imemo_ast is obsolete");
605-
606-
break;
607594
case imemo_callcache:
608595
RB_DEBUG_COUNTER_INC(obj_imemo_callcache);
609596

internal/imemo.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ enum imemo_type {
3737
imemo_ment = 6,
3838
imemo_iseq = 7,
3939
imemo_tmpbuf = 8,
40-
imemo_ast = 9, // Obsolete due to the universal parser
4140
imemo_callinfo = 10,
4241
imemo_callcache = 11,
4342
imemo_constcache = 12,

yjit/src/cruby_bindings.inc.rs

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

zjit/src/cruby_bindings.inc.rs

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)