Remove unnecessary use of Kernel#silence_warnings
This commit is contained in:
parent
a27ee86c38
commit
712baccef5
@ -119,9 +119,7 @@ def deprecation_horizon
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user