mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
ec5ff1197a
commit
cd3bc6fd5c
2 changed files with 5 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Oct 7 00:27:58 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* class.c (rb_include_module): remove unnecessary check.
|
||||
[ruby-talk:218402]
|
||||
|
||||
Fri Oct 6 04:30:30 2006 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* sample/openssl/c_rehash.rb: Use digest/md5 instead of obsolete md5.
|
||||
|
|
3
class.c
3
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue