aboutsummaryrefslogtreecommitdiffstats
path: root/ext/objspace/objspace_dump.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-04 11:37:19 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-04 11:37:19 +0000
commita03e9fd9fabf20012482dd2be4ed2e5b466b59ec (patch)
tree1a3de74d20819c95fbb90025e07bc0fc518305f8 /ext/objspace/objspace_dump.c
parentee712414aaba571bd8002781e91eea54a36ea943 (diff)
downloadruby-a03e9fd9fabf20012482dd2be4ed2e5b466b59ec.tar.gz
Remove RNODE cast from NODE utility functions
Now, casting NODE to VALUE is not recommended. This change requires an explicit cast from VALUE to NODE to use the NODE utility functions such as `nd_type`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/objspace/objspace_dump.c')
-rw-r--r--ext/objspace/objspace_dump.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ext/objspace/objspace_dump.c b/ext/objspace/objspace_dump.c
index f9dda1ac1a..18c4061f29 100644
--- a/ext/objspace/objspace_dump.c
+++ b/ext/objspace/objspace_dump.c
@@ -244,10 +244,6 @@ dump_object(VALUE obj, struct dump_config *dc)
dump_append(dc, "}\n");
return;
- case T_NODE:
- dump_append(dc, ", \"node_type\":\"%s\"", ruby_node_name(nd_type(obj)));
- break;
-
case T_IMEMO:
dump_append(dc, ", \"imemo_type\":\"%s\"", imemo_name(imemo_type(obj)));
break;