diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-24 05:54:30 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-24 05:54:30 +0000 |
commit | f70aa7637b68dc7035c4598f97220ad778693aa2 (patch) | |
tree | d7da5aecd5252636dd4d8d8fbcc2e3c0e933b100 /node.c | |
parent | 752faf4fb4f853e332fe15dcc805b1a5ebff83a9 (diff) |
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
Diffstat (limited to 'node.c')
-rw-r--r-- | node.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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"); |