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

ruby-changes:43754

From: nobu <ko1@a...>
Date: Sun, 7 Aug 2016 19:34:14 +0900 (JST)
Subject: [ruby-changes:43754] nobu:r55827 (trunk): vcs.rb: suppress warnings

nobu	2016-08-07 19:34:10 +0900 (Sun, 07 Aug 2016)

  New Revision: 55827

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55827

  Log:
    vcs.rb: suppress warnings
    
    * tool/vcs.rb (VCS#modified): get rid of set but unused variables.

  Modified files:
    trunk/tool/vcs.rb
Index: tool/vcs.rb
===================================================================
--- tool/vcs.rb	(revision 55826)
+++ tool/vcs.rb	(revision 55827)
@@ -138,7 +138,7 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/vcs.rb#L138
   end
 
   def modified(path)
-    last, changed, modified, *rest = get_revisions(path)
+    _, _, modified, * = get_revisions(path)
     modified
   end
 

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

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