1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

insns.def: duplicated code

* insns.def (checkmatch): remove duplicated code.  [ruby-core:47339]
  [Bug #6930]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-08-28 16:57:50 +00:00
parent 43b8ae4631
commit cb6fc579f4

View file

@ -840,8 +840,6 @@ checkmatch
if (flag & VM_CHECKMATCH_ARRAY) {
int i;
for (i = 0; i < RARRAY_LEN(pattern); i++) {
enum vm_check_match_type checkmatch_type =
(enum vm_check_match_type)(flag & VM_CHECKMATCH_TYPE_MASK);
if (RTEST(check_match(RARRAY_PTR(pattern)[i], target, checkmatch_type))) {
result = Qtrue;
break;