summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcremno <[email protected]>2015-05-29 11:29:11 +0200
committercremno <[email protected]>2015-05-29 11:29:11 +0200
commit2554fd9c945d5b5281a52d40146b348353e3707c (patch)
tree97a0e614e8773de883eb787497024d2d791f3f08
parentb05d736b49a6d3a99b7f75c74ffd9b6613c453d3 (diff)
downloadmruby-2554fd9c945d5b5281a52d40146b348353e3707c.tar.gz
mruby-2554fd9c945d5b5281a52d40146b348353e3707c.zip
remove unreachable code
It's just a copy of the code in the previous case (NODE_CALL).
-rw-r--r--src/codegen.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/codegen.c b/src/codegen.c
index 222dec9b6..6f1f75e88 100644
--- a/src/codegen.c
+++ b/src/codegen.c
@@ -957,13 +957,6 @@ gen_assignment(codegen_scope *s, node *tree, int sp, int val)
gen_vmassignment(s, tree->car, sp, val);
break;
- push();
- gen_call(s, tree, attrsym(s, sym(tree->cdr->car)), sp, NOVAL);
- pop();
- if (val) {
- genop_peep(s, MKOP_AB(OP_MOVE, cursp(), sp), val);
- }
- break;
/* splat without assignment */
case NODE_NIL:
break;