From 5b01c8bb8bd9354fda8dc00c2df6888dbab7f017 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Tue, 26 Jan 2010 22:44:32 +0100 Subject: removes unused Object#remove_subclasses_of --- activesupport/lib/active_support/core_ext/object/extending.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/activesupport/lib/active_support/core_ext/object/extending.rb b/activesupport/lib/active_support/core_ext/object/extending.rb index b8b6970382..e1aed3fc3c 100644 --- a/activesupport/lib/active_support/core_ext/object/extending.rb +++ b/activesupport/lib/active_support/core_ext/object/extending.rb @@ -36,10 +36,6 @@ class Class end class Object - def remove_subclasses_of(*superclasses) #:nodoc: - Class.remove_class(*subclasses_of(*superclasses)) - end - # Exclude this class unless it's a subclass of our supers and is defined. # We check defined? in case we find a removed class that has yet to be # garbage collected. This also fails for anonymous classes -- please -- cgit v1.2.3