mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* class.c (rb_include_module): remove unnecessary check.
[ruby-talk:218402] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0522cf503c
commit
f6fcd86351
2 changed files with 5 additions and 3 deletions
3
class.c
3
class.c
|
@ -352,9 +352,6 @@ rb_include_module(VALUE klass, VALUE 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
Add a link
Reference in a new issue