diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-10 07:44:00 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-10 07:44:00 +0000 |
| commit | b3b75d0758aba97f78f31a485a61b81e9cd6dfff (patch) | |
| tree | c107fd0c04868cb855b12b12c6cf4af3862a8fe8 | |
| parent | a9415e93d2e038957b3c2f41c5e161d8f8439d65 (diff) | |
| download | ruby-b3b75d0758aba97f78f31a485a61b81e9cd6dfff.tar.gz ruby-b3b75d0758aba97f78f31a485a61b81e9cd6dfff.tar.xz ruby-b3b75d0758aba97f78f31a485a61b81e9cd6dfff.zip | |
* eval.c (umethod_bind): perge unused check. [ruby-dev:22850]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | eval.c | 6 |
2 files changed, 4 insertions, 6 deletions
@@ -1,3 +1,7 @@ +Tue Feb 10 16:43:56 2004 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * eval.c (umethod_bind): perge unused check. [ruby-dev:22850] + Mon Feb 9 17:16:00 2004 WATANABE Hirofumi <eban@ruby-lang.org> * lib/rdoc/parsers/parse_c.rb: escape '{' and '}' to avoid warnings. @@ -8782,12 +8782,6 @@ umethod_bind(method, recv) if (FL_TEST(data->rklass, FL_SINGLETON)) { rb_raise(rb_eTypeError, "singleton method called for a different object"); } -#if 0 - if (FL_TEST(CLASS_OF(recv), FL_SINGLETON) && - st_lookup(RCLASS(CLASS_OF(recv))->m_tbl, data->oid, 0)) { - rb_raise(rb_eTypeError, "method `%s' overridden", rb_id2name(data->oid)); - } -#endif if(!rb_obj_is_kind_of(recv, data->rklass)) { rb_raise(rb_eTypeError, "bind argument must be an instance of %s", rb_class2name(data->rklass)); |
