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

ruby-changes:31209

From: nobu <ko1@a...>
Date: Tue, 15 Oct 2013 04:14:58 +0900 (JST)
Subject: [ruby-changes:31209] nobu:r43288 (trunk): allpairs.rb: remove unused variable

nobu	2013-10-15 04:14:29 +0900 (Tue, 15 Oct 2013)

  New Revision: 43288

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

  Log:
    allpairs.rb: remove unused variable
    
    * test/ruby/allpairs.rb (AllPairs#each_index): remove unused variable,
      prime.

  Modified files:
    trunk/test/ruby/allpairs.rb
Index: test/ruby/allpairs.rb
===================================================================
--- test/ruby/allpairs.rb	(revision 43287)
+++ test/ruby/allpairs.rb	(revision 43288)
@@ -66,7 +66,6 @@ module AllPairs https://github.com/ruby/ruby/blob/trunk/test/ruby/allpairs.rb#L66
   def each_index(*vs)
     n = vs.length
     max_v = vs.max
-    prime = make_prime(max_v)
     h = {}
     make_large_block(max_v, n) {|row|
       row = vs.zip(row).map {|v, i| i % v }

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

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