aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/class
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-01-26 22:42:56 +0100
committerXavier Noria <fxn@hashref.com>2010-01-26 22:42:56 +0100
commit1b2ac25a2fe12d636f90bce1c510667d7accf407 (patch)
tree907c54491dca7d0650be14fa0aa440d209ea22c4 /activesupport/lib/active_support/core_ext/class
parentec7c642f5fe60afc857aa64f1a9b4c2be56f9d70 (diff)
downloadrails-1b2ac25a2fe12d636f90bce1c510667d7accf407.tar.gz
rails-1b2ac25a2fe12d636f90bce1c510667d7accf407.tar.bz2
rails-1b2ac25a2fe12d636f90bce1c510667d7accf407.zip
removes unused Class#remove_subclasses
Diffstat (limited to 'activesupport/lib/active_support/core_ext/class')
-rw-r--r--activesupport/lib/active_support/core_ext/class/removal.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/activesupport/lib/active_support/core_ext/class/removal.rb b/activesupport/lib/active_support/core_ext/class/removal.rb
index 82163eeb30..c76c87e313 100644
--- a/activesupport/lib/active_support/core_ext/class/removal.rb
+++ b/activesupport/lib/active_support/core_ext/class/removal.rb
@@ -7,15 +7,6 @@ class Class #:nodoc:
eval("defined?(::#{self}) && ::#{self}.equal?(self)")
end
- # Unassociates the class with its subclasses and removes the subclasses
- # themselves.
- #
- # Integer.remove_subclasses # => [Bignum, Fixnum]
- # Fixnum # => NameError: uninitialized constant Fixnum
- def remove_subclasses
- Object.remove_subclasses_of(self)
- end
-
# Removes the classes in +klasses+ from their parent module.
#
# Ordinary classes belong to some module via a constant. This method computes