From d10bc8f974c1bd6b39394d734942aa9f872bc96b Mon Sep 17 00:00:00 2001 From: mame Date: Tue, 24 Oct 2017 05:54:30 +0000 Subject: Remove special handling for (NODE*)1 The magic number was used to mark NODE_ATTRASGN when its receiver is self. But the hack was refactored at r46366. So the remaining code fragments are no longer needed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- node.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'node.c') diff --git a/node.c b/node.c index 5987c5384f..4070bec825 100644 --- a/node.c +++ b/node.c @@ -930,12 +930,7 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node) ANN("attr assignment"); ANN("format: [nd_recv].[nd_mid] = [nd_args]"); ANN("example: struct.field = foo"); - if (node->nd_recv == (NODE *) 1) { - F_MSG(nd_recv, "receiver", "1 (self)"); - } - else { - F_NODE(nd_recv, "receiver"); - } + F_NODE(nd_recv, "receiver"); F_ID(nd_mid, "method name"); LAST_NODE; F_NODE(nd_args, "arguments"); -- cgit v1.2.3