Skip to content

Commit b3a1286

Browse files
committed
Avoid duplicate struct name in rb_raw_obj_info
Previously we printed the struct name of T_DATA both in rb_raw_obj_info_buitin_type and in rb_raw_obj_info_common via type_name.
1 parent ad380f8 commit b3a1286

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

gc.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5054,12 +5054,6 @@ rb_raw_obj_info_buitin_type(char *const buff, const size_t buff_size, const VALU
50545054
APPEND_F("r:%d", r->pub.id);
50555055
}
50565056
}
5057-
else {
5058-
const char * const type_name = rb_objspace_data_type_name(obj);
5059-
if (type_name) {
5060-
APPEND_F("%s", type_name);
5061-
}
5062-
}
50635057
break;
50645058
}
50655059
case T_IMEMO: {

0 commit comments

Comments
 (0)