From 3bd5f27f737c7d365b7d01c43d77a958c224ab16 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Mon, 20 Dec 2021 08:26:14 -0800 Subject: Remove Class#descendants --- class.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'class.c') diff --git a/class.c b/class.c index f1e8953f81..dd9da9b66f 100644 --- a/class.c +++ b/class.c @@ -1427,31 +1427,6 @@ class_descendants(VALUE klass, bool immediate_only) return data.buffer; } -/* - * call-seq: - * descendants -> array - * - * Returns an array of classes where the receiver is one of - * the ancestors of the class, excluding the receiver and - * singleton classes. The order of the returned array is not - * defined. - * - * class A; end - * class B < A; end - * class C < B; end - * - * A.descendants #=> [B, C] - * B.descendants #=> [C] - * C.descendants #=> [] - */ - -VALUE -rb_class_descendants(VALUE klass) -{ - return class_descendants(klass, false); -} - - /* * call-seq: * subclasses -> array -- cgit v1.2.3