summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-21 10:32:33 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-21 10:32:33 +0000
commit800607aa7ebde919bb9183b451a03ae3b390515f (patch)
tree78aadef682063a7d684311fdf94f404106d734ce /class.c
parent1bcee938d5f4a0a70d492c1c1c13ec29f24980ea (diff)
revert r53228 because this patch breaks rubyspec
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r--class.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/class.c b/class.c
index fdebee8..f95890b 100644
--- a/class.c
+++ b/class.c
@@ -442,12 +442,6 @@ rb_singleton_class_attached(VALUE klass, VALUE obj)
*/
#define META_CLASS_OF_CLASS_CLASS_P(k) (METACLASS_OF(k) == (k))
-int
-rb_singleton_class_has_metaclass_p(VALUE sklass)
-{
- return rb_attr_get(METACLASS_OF(sklass), id_attached) == sklass;
-}
-
/*!
* whether k has a metaclass
* @retval 1 if \a k has a metaclass
@@ -455,13 +449,7 @@ rb_singleton_class_has_metaclass_p(VALUE sklass)
*/
#define HAVE_METACLASS_P(k) \
(FL_TEST(METACLASS_OF(k), FL_SINGLETON) && \
- rb_singleton_class_has_metaclass_p(k))
-
-int
-rb_class_has_metaclass_p(VALUE klass)
-{
- return HAVE_METACLASS_P(klass);
-}
+ rb_ivar_get(METACLASS_OF(k), id_attached) == (k))
/*!
* ensures \a klass belongs to its own eigenclass.