[前][次][番号順一覧][スレッド一覧]

ruby-changes:33625

From: naruse <ko1@a...>
Date: Thu, 24 Apr 2014 17:47:51 +0900 (JST)
Subject: [ruby-changes:33625] naruse:r45706 (trunk): suppress warnings: assigned but unused variable - pos

naruse	2014-04-24 17:47:47 +0900 (Thu, 24 Apr 2014)

  New Revision: 45706

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45706

  Log:
    suppress warnings: assigned but unused variable - pos

  Modified files:
    trunk/test/ruby/test_io.rb
Index: test/ruby/test_io.rb
===================================================================
--- test/ruby/test_io.rb	(revision 45705)
+++ test/ruby/test_io.rb	(revision 45706)
@@ -1722,7 +1722,6 @@ class TestIO < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L1722
         }
         open(t.path, 'r+') { |f|
           break unless can_seek_data(f)
-          pos = f.pos
           f.seek(100*1024, IO::SEEK_SET)
           f.print("zot\n")
           f.seek(50*1024, IO::SEEK_DATA)
@@ -1773,7 +1772,6 @@ class TestIO < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L1772
         }
         open(t.path, 'r+') { |f|
           break unless can_seek_data(f)
-          pos = f.pos
           f.seek(100*1024, :SET)
           f.print("zot\n")
           f.seek(50*1024, :DATA)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]