mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
removes unused Object#remove_subclasses_of
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user