summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-09 02:57:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-09 02:57:57 +0000
commite9a8e8ab4a59c4ec53a1a944498d86656527e93e (patch)
treec1135a7b3f415562df4a5175c1e89bfd62d888e3 /compile.c
parent761653db90c2a8816724f63648630087b219aa19 (diff)
remove core#hash_merge_ary
* compile.c (compile_array_): remove m_core_hash_merge_ary which seems unreachable, and wrong number of arguments. * vm.c (m_core_hash_merge_ary): removed because it is never used. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index 50136b483e..7de1da8694 100644
--- a/compile.c
+++ b/compile.c
@@ -3090,9 +3090,14 @@ compile_array_(rb_iseq_t *iseq, LINK_ANCHOR *const ret, NODE* node_root,
ADD_INSN(ret, line, concatarray);
}
else {
+#if 0
ADD_INSN1(ret, line, putspecialobject, INT2FIX(VM_SPECIAL_OBJECT_VMCORE));
ADD_INSN1(ret, line, putobject, ary);
ADD_SEND(ret, line, id_core_hash_merge_ary, INT2FIX(1));
+ /* wrong number of arguments -----------------------^ */
+#else
+ compile_bug(ERROR_ARGS "core#hash_merge_ary");
+#endif
}
}
}