Remove unnecessary use of Kernel#silence_warnings

This commit is contained in:
Jeremy Kemper
2009-03-24 19:46:07 -07:00
parent a27ee86c38
commit 712baccef5

View File

@@ -119,9 +119,7 @@ module ActiveSupport
end
class DeprecationProxy #:nodoc:
silence_warnings do
instance_methods.each { |m| undef_method m unless m =~ /^__/ }
end
instance_methods.each { |m| undef_method m unless m =~ /^__/ }
# Don't give a deprecation warning on inspect since test/unit and error
# logs rely on it for diagnostics.