ruby-changes:32988
From: hsbt <ko1@a...>
Date: Fri, 21 Feb 2014 10:53:44 +0900 (JST)
Subject: [ruby-changes:32988] hsbt:r45067 (trunk): * test/monitor/test_monitor.rb: remove unused variabels.
hsbt 2014-02-21 10:53:38 +0900 (Fri, 21 Feb 2014) New Revision: 45067 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45067 Log: * test/monitor/test_monitor.rb: remove unused variabels. * test/resolv/test_dns.rb: ditto. * test/rexml/test_functions.rb: ditto. * test/rss/test_setup_maker_itunes.rb: ditto. Modified files: trunk/ChangeLog trunk/test/monitor/test_monitor.rb trunk/test/resolv/test_dns.rb trunk/test/rexml/test_functions.rb trunk/test/rss/test_setup_maker_itunes.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 45066) +++ ChangeLog (revision 45067) @@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Feb 21 10:39:33 2014 SHIBATA Hiroshi <shibata.hiroshi@g...> + + * test/monitor/test_monitor.rb: remove unused variabels. + * test/resolv/test_dns.rb: ditto. + * test/rexml/test_functions.rb: ditto. + * test/rss/test_setup_maker_itunes.rb: ditto. + Fri Feb 21 09:48:56 2014 Eric Wong <e@8...> * ext/socket/ancdata.c (bsock_sendmsg_internal): only retry on error Index: test/rexml/test_functions.rb =================================================================== --- test/rexml/test_functions.rb (revision 45066) +++ test/rexml/test_functions.rb (revision 45067) @@ -83,7 +83,6 @@ class FunctionsTester < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/rexml/test_functions.rb#L83 # examples from http://www.w3.org/TR/xpath#function-substring doc = Document.new('<test string="12345" />') - d = Document.new("<a b='1'/>") #puts XPath.first(d, 'node()[0 + 1]') #d = Document.new("<a b='1'/>") #puts XPath.first(d, 'a[0 mod 0]') Index: test/rss/test_setup_maker_itunes.rb =================================================================== --- test/rss/test_setup_maker_itunes.rb (revision 45066) +++ test/rss/test_setup_maker_itunes.rb (revision 45067) @@ -13,7 +13,6 @@ module RSS https://github.com/ruby/ruby/blob/trunk/test/rss/test_setup_maker_itunes.rb#L13 duration_components = [0, 4, 5] explicit = true keywords = ["salt", "pepper", "shaker", "exciting"] - new_feed_url = "http://newlocation.com/example.rss" owner = {:name => "John Doe", :email => "john.doe@e..."} subtitle = "A show about everything" summary = "All About Everything is a show about " + Index: test/resolv/test_dns.rb =================================================================== --- test/resolv/test_dns.rb (revision 45066) +++ test/resolv/test_dns.rb (revision 45067) @@ -38,7 +38,7 @@ class TestResolvDNS < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/resolv/test_dns.rb#L38 dns.getresources("foo.example.org", Resolv::DNS::Resource::IN::A) } } - msg, (af, client_port, _, client_address) = u.recvfrom(4096) + msg, (_, client_port, _, client_address) = u.recvfrom(4096) id, word2, qdcount, ancount, nscount, arcount = msg.unpack("nnnnnn") qr = (word2 & 0x8000) >> 15 opcode = (word2 & 0x7800) >> 11 @@ -65,7 +65,7 @@ class TestResolvDNS < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/resolv/test_dns.rb#L65 assert_operator(rest, :start_with?, name) rest = rest[name.length..-1] assert_equal(4, rest.length) - qtype, qclass = rest.unpack("nn") + qtype, _ = rest.unpack("nn") assert_equal(1, qtype) # A assert_equal(1, qtype) # IN id = id Index: test/monitor/test_monitor.rb =================================================================== --- test/monitor/test_monitor.rb (revision 45066) +++ test/monitor/test_monitor.rb (revision 45067) @@ -83,7 +83,7 @@ class TestMonitor < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/monitor/test_monitor.rb#L83 def test_try_enter queue1 = Queue.new queue2 = Queue.new - th = Thread.start { + Thread.start { queue1.deq @monitor.enter queue2.enq(nil) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/