From 94f62a7de6ebdeb7c99e7e1b313872c03a84712a Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi Date: Sun, 13 Aug 2017 23:04:42 +0900 Subject: test/utils: remove OpenSSL::TestUtils.silent Use EnvUtil.suppress_warning instead. We have started to use it already, and the name 'suppress_warning' expresses what it does more clearly. --- test/utils.rb | 9 --------- 1 file changed, 9 deletions(-) (limited to 'test/utils.rb') diff --git a/test/utils.rb b/test/utils.rb index 6da02f69..a672b916 100644 --- a/test/utils.rb +++ b/test/utils.rb @@ -122,15 +122,6 @@ module OpenSSL::TestUtils pkvalue = publickey.value OpenSSL::Digest::SHA1.hexdigest(pkvalue).scan(/../).join(":").upcase end - - def silent - begin - back, $VERBOSE = $VERBOSE, nil - yield - ensure - $VERBOSE = back - end - end end class OpenSSL::TestCase < Test::Unit::TestCase -- cgit v1.2.3