summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-04 10:59:36 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-04 10:59:36 (GMT)
commitbd9a78a0fed1b937aaaa2edaf893475a81c6d456 (patch)
treecb44dd2e26516dabb95e4f888b6ad083e14a75c1 /time.c
parentdda048381f798697337435c617d96f3086467d59 (diff)
Revert "Optimize Time.utc"
This reverts commit r63848. It breaks tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r--time.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/time.c b/time.c
index f513dc0..f48f0e2 100644
--- a/time.c
+++ b/time.c
@@ -1095,9 +1095,6 @@ init_leap_second_info(void)
timew = timegmw_noleapsecond(&vtm);
number_of_leap_seconds_known = NUM2INT(w2v(wsub(TIMET2WV(known_leap_seconds_limit), rb_time_unmagnify(timew))));
- if (number_of_leap_seconds_known == 0) {
- known_leap_seconds_limit = 0;
- }
}
}