mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
revert r45487
* variable.c (rb_alias_variable): IDs are always immportal now, no pin down is needed. * vm_method.c (rb_method_entry_make): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e98b307036
commit
4194ca02fb
2 changed files with 0 additions and 3 deletions
|
@ -872,7 +872,6 @@ rb_alias_variable(ID name1, ID name2)
|
|||
|
||||
entry2 = rb_global_entry(name2);
|
||||
if (!st_lookup(rb_global_tbl, (st_data_t)name1, &data1)) {
|
||||
name1 = SYM2ID(ID2SYM(name1));
|
||||
entry1 = ALLOC(struct global_entry);
|
||||
entry1->id = name1;
|
||||
st_add_direct(rb_global_tbl, name1, (st_data_t)entry1);
|
||||
|
|
|
@ -344,8 +344,6 @@ rb_method_entry_make(VALUE klass, ID mid, rb_method_type_t type,
|
|||
rb_unlink_method_entry(old_me);
|
||||
}
|
||||
|
||||
mid = SYM2ID(ID2SYM(mid));
|
||||
|
||||
me = ALLOC(rb_method_entry_t);
|
||||
|
||||
rb_clear_method_cache_by_class(klass);
|
||||
|
|
Loading…
Reference in a new issue