diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-09 02:57:57 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-09 02:57:57 +0000 |
commit | e9a8e8ab4a59c4ec53a1a944498d86656527e93e (patch) | |
tree | c1135a7b3f415562df4a5175c1e89bfd62d888e3 /compile.c | |
parent | 761653db90c2a8816724f63648630087b219aa19 (diff) | |
download | ruby-e9a8e8ab4a59c4ec53a1a944498d86656527e93e.tar.gz |
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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 } } } |