зеркало из https://github.com/github/ruby.git
fix `unused variables` warning
Now `ccs` is not needed there.
This commit is contained in:
Родитель
eab7f4623f
Коммит
7e8802fa5b
|
@ -1318,7 +1318,6 @@ cache_callable_method_entry(VALUE klass, ID mid, const rb_callable_method_entry_
|
|||
VM_ASSERT(cme != NULL);
|
||||
|
||||
struct rb_id_table *cc_tbl = RCLASS_CC_TBL(klass);
|
||||
struct rb_class_cc_entries *ccs;
|
||||
VALUE ccs_data;
|
||||
|
||||
if (!cc_tbl) {
|
||||
|
@ -1326,11 +1325,13 @@ cache_callable_method_entry(VALUE klass, ID mid, const rb_callable_method_entry_
|
|||
}
|
||||
|
||||
if (rb_id_table_lookup(cc_tbl, mid, &ccs_data)) {
|
||||
ccs = (struct rb_class_cc_entries *)ccs_data;
|
||||
#if VM_CHECK_MODE > 0
|
||||
struct rb_class_cc_entries *ccs = (struct rb_class_cc_entries *)ccs_data;
|
||||
VM_ASSERT(ccs->cme == cme);
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
ccs = vm_ccs_create(klass, cc_tbl, mid, cme);
|
||||
vm_ccs_create(klass, cc_tbl, mid, cme);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче