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

ruby-changes:16942

From: naruse <ko1@a...>
Date: Mon, 9 Aug 2010 16:07:01 +0900 (JST)
Subject: [ruby-changes:16942] Ruby:r28938 (trunk): * lib/rubygems/source_index.rb: rename unused variable.

naruse	2010-08-09 16:05:26 +0900 (Mon, 09 Aug 2010)

  New Revision: 28938

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

  Log:
    * lib/rubygems/source_index.rb: rename unused variable.
    
    * lib/rubygems/specification.rb: rename unused variable.
    
    * lib/rubygems/specification.rb: remove unused variable.

  Modified files:
    trunk/ChangeLog
    trunk/lib/rubygems/source_index.rb
    trunk/lib/rubygems/specification.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 28937)
+++ ChangeLog	(revision 28938)
@@ -1,3 +1,11 @@
+Mon Aug  9 15:59:02 2010  NARUSE, Yui  <naruse@r...>
+
+	* lib/rubygems/source_index.rb: rename unused variable.
+
+	* lib/rubygems/specification.rb: rename unused variable.
+
+	* lib/rubygems/specification.rb: remove unused variable.
+
 Mon Aug  9 14:10:06 2010  NARUSE, Yui  <naruse@r...>
 
 	* ext/nkf/nkf-utf8/nkf.c: Fix type of mimeout_state.buf.
Index: lib/rubygems/specification.rb
===================================================================
--- lib/rubygems/specification.rb	(revision 28937)
+++ lib/rubygems/specification.rb	(revision 28938)
@@ -671,7 +671,7 @@
   private :same_attributes?
 
   def hash # :nodoc:
-    @@attributes.inject(0) { |hash_code, (name, default_value)|
+    @@attributes.inject(0) { |hash_code, (name, _)|
       n = self.send(name).hash
       hash_code + n
     }
@@ -703,7 +703,7 @@
   def to_yaml(opts = {}) # :nodoc:
     return super if YAML.const_defined?(:ENGINE) && !YAML::ENGINE.syck?
 
-    yaml = YAML.quick_emit object_id, opts do |out|
+    YAML.quick_emit object_id, opts do |out|
       out.map taguri, to_yaml_style do |map|
         encode_with map
       end
Index: lib/rubygems/source_index.rb
===================================================================
--- lib/rubygems/source_index.rb	(revision 28937)
+++ lib/rubygems/source_index.rb	(revision 28938)
@@ -357,7 +357,7 @@
       begin
         fetcher = Gem::SpecFetcher.fetcher
         remotes = fetcher.find_matching dependency
-        remotes = remotes.map { |(name, version,_),_| version }
+        remotes = remotes.map { |(_,version,_),_| version }
       rescue Gem::RemoteFetcher::FetchError => e
         raise unless fetcher.warn_legacy e do
           require 'rubygems/source_info_cache'

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

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