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

ruby-changes:56688

From: Nobuyoshi <ko1@a...>
Date: Mon, 29 Jul 2019 13:30:05 +0900 (JST)
Subject: [ruby-changes:56688] Nobuyoshi Nakada: 8c6f1715f0 (master): Removed unused variables and methods

https://git.ruby-lang.org/ruby.git/commit/?id=8c6f1715f0

From 8c6f1715f03e0322c96d614a42c30bee0b7790eb Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 29 Jul 2019 13:29:42 +0900
Subject: Removed unused variables and methods


diff --git a/test/ruby/test_time_tz.rb b/test/ruby/test_time_tz.rb
index 2a460aa..8fd5d5a 100644
--- a/test/ruby/test_time_tz.rb
+++ b/test/ruby/test_time_tz.rb
@@ -544,7 +544,7 @@ Europe/Lisbon  Sun Dec 31 23:59:59 1911 UT = Sun Dec 31 23:23:14 1911 LMT isdst= https://github.com/ruby/ruby/blob/trunk/test/ruby/test_time_tz.rb#L544
 End
 
   class TZ
-    attr_reader :name, :offset, :offset2
+    attr_reader :name
 
     def initialize(name, abbr, offset, abbr2 = nil, offset2 = nil)
       @name = name
@@ -605,8 +605,6 @@ module TestTimeTZ::WithTZ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_time_tz.rb#L605
   end
 
   def subtest_now(time_class, tz, tzarg, tzname, abbr, utc_offset)
-    abbr, abbr2 = *abbr
-    utc_offset, utc_offset2 = *utc_offset
     t = time_class.now(in: tzarg)
     assert_equal(tz, t.zone)
   end
@@ -659,8 +657,6 @@ module TestTimeTZ::WithTZ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_time_tz.rb#L657
   end
 
   def subtest_marshal(time_class, tz, tzarg, tzname, abbr, utc_offset)
-    abbr, abbr2 = *abbr
-    utc_offset, utc_offset2 = *utc_offset
     t = time_class.new(2018, 9, 1, 12, 0, 0, tzarg)
     t2 = Marshal.load(Marshal.dump(t))
     assert_equal(t, t2)
-- 
cgit v0.10.2


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

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