From cd3bc6fd5cef2963b694669b141a4e39a772e413 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 6 Oct 2006 15:32:09 +0000 Subject: * class.c (rb_include_module): remove unnecessary check. [ruby-talk:218402] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ class.c | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 04d36c7b42..ac175db63d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Oct 7 00:27:58 2006 Yukihiro Matsumoto + + * class.c (rb_include_module): remove unnecessary check. + [ruby-talk:218402] + Fri Oct 6 04:30:30 2006 Akinori MUSHA * sample/openssl/c_rehash.rb: Use digest/md5 instead of obsolete md5. diff --git a/class.c b/class.c index 798ecebe72..80dc9e4b2d 100644 --- a/class.c +++ b/class.c @@ -379,9 +379,6 @@ rb_include_module(klass, module) rb_secure(4); } - if (NIL_P(module)) return; - if (klass == module) return; - if (TYPE(module) != T_MODULE) { Check_Type(module, T_MODULE); } -- cgit v1.2.3