ruby-changes:50634
From: k0kubun <ko1@a...>
Date: Sat, 17 Mar 2018 15:41:40 +0900 (JST)
Subject: [ruby-changes:50634] k0kubun:r62794 (trunk): Remove unused variables
k0kubun 2018-03-17 15:41:35 +0900 (Sat, 17 Mar 2018) New Revision: 62794 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62794 Log: Remove unused variables This fixes following warning: ``` test/logger/test_logger.rb:329: warning: assigned but unused variable - read_read ``` [Fix GH-1840] From: yuuji.yaginuma <yuuji.yaginuma@g...> Modified files: trunk/test/logger/test_logger.rb Index: test/logger/test_logger.rb =================================================================== --- test/logger/test_logger.rb (revision 62793) +++ test/logger/test_logger.rb (revision 62794) @@ -326,7 +326,7 @@ class TestLogger < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/logger/test_logger.rb#L326 r, w = IO.pipe logger = Logger.new(w) logger << "msg" - read_ready, = IO.select([r], nil, nil, 0.1) + IO.select([r], nil, nil, 0.1) w.close msg = r.read r.close @@ -335,7 +335,7 @@ class TestLogger < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/logger/test_logger.rb#L335 r, w = IO.pipe logger = Logger.new(w) logger << "msg2\n\n" - read_ready, = IO.select([r], nil, nil, 0.1) + IO.select([r], nil, nil, 0.1) w.close msg = r.read r.close -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/