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 | |
parent | 752faf4fb4f853e332fe15dcc805b1a5ebff83a9 (diff) | |
download | ruby-f70aa7637b68dc7035c4598f97220ad778693aa2.tar.gz |
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
-rw-r--r-- | node.c | 7 | ||||
-rw-r--r-- | parse.y | 1 |
2 files changed, 1 insertions, 7 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"); @@ -8806,7 +8806,6 @@ fixpos(NODE *node, NODE *orig) { if (!node) return; if (!orig) return; - if (orig == (NODE*)1) return; nd_set_line(node, nd_line(orig)); } |