diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-12 15:21:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-12 15:21:03 +0000 |
commit | efa4ed8cce22b7b8e5b347b8f7e624a11e1d885f (patch) | |
tree | 5bd77daf6e562878ab397c24302cdad0146ed411 /vm_method.c | |
parent | d7feab06ccaacff4e673f22e55a9b8f537fa89ba (diff) |
* vm_method.c (rb_alias): hooks are called from rb_add_method_def.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/vm_method.c b/vm_method.c index c263defda2..61fc8cb793 100644 --- a/vm_method.c +++ b/vm_method.c @@ -827,7 +827,6 @@ void rb_alias(VALUE klass, ID name, ID def) { rb_method_entry_t *orig_me; - VALUE singleton = 0; rb_frozen_class_p(klass); if (klass == rb_cObject) { @@ -842,22 +841,8 @@ rb_alias(VALUE klass, ID name, ID def) rb_print_undef(klass, def, 0); } } - if (FL_TEST(klass, FL_SINGLETON)) { - singleton = rb_iv_get(klass, "__attached__"); - } rb_add_method_me(klass, name, orig_me, orig_me->flag); - - if (!ruby_running) return; - - rb_clear_cache_by_id(name); - - if (singleton) { - rb_funcall(singleton, singleton_added, 1, ID2SYM(name)); - } - else { - rb_funcall(klass, added, 1, ID2SYM(name)); - } } /* |