diff options
author | Hiroshi SHIBATA <[email protected]> | 2024-07-25 16:50:33 +0800 |
---|---|---|
committer | git <[email protected]> | 2024-07-26 01:45:02 +0000 |
commit | 83a99bdbe606d3e50fbaa7ea3e260d01c2b76fc8 () | |
tree | d941df436130da77c3fc5cfa67d09e2cd1c845a4 /test/net | |
parent | 2c76bb7ec0af9a90977578109b9923be39f50382 (diff) |
[ruby/net-http] Removed needless NullWriter class
https://.com/ruby/net-http/commit/ddb2a81aed
-rw-r--r-- | test/net/http/utils.rb | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -234,7 +234,7 @@ module TestNetHTTPUtils def new klass = Net::HTTP::Proxy(config('proxy_host'), config('proxy_port')) http = klass.new(config('host'), config('port')) - http.set_debug_output logfile() http end @@ -244,7 +244,7 @@ module TestNetHTTPUtils end def logfile - $DEBUG ? $stderr : NullWriter.new end def setup @@ -334,16 +334,6 @@ module TestNetHTTPUtils $test_net_http_data.force_encoding("ASCII-8BIT") $test_net_http_data_type = 'application/octet-stream' - class NullWriter - def <<(_s); end - - def puts(*_args); end - - def print(*_args); end - - def printf(*_args); end - end - def self.clean_http_proxy_env orig = { 'http_proxy' => ENV['http_proxy'], |