diff options
author | Abseil Team <absl-team@google.com> | 2023-12-26 10:16:23 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-12-26 10:18:49 -0800 |
commit | c13ee376637699ba6ed2a4bd200df790b0d92011 (patch) | |
tree | 2e287bbe906697289af5898614483b82ebeadcd4 /absl | |
parent | dd12983d283be5ad7bdba1f7e00872b70085a35a (diff) | |
download | abseil-c13ee376637699ba6ed2a4bd200df790b0d92011.tar.gz abseil-c13ee376637699ba6ed2a4bd200df790b0d92011.tar.bz2 abseil-c13ee376637699ba6ed2a4bd200df790b0d92011.zip |
Import of CCTZ from GitHub.
PiperOrigin-RevId: 593814844
Change-Id: If1967814b2b9273061b928bfee102faae1fad263
Diffstat (limited to 'absl')
-rw-r--r-- | absl/time/internal/cctz/src/time_zone_info.cc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/absl/time/internal/cctz/src/time_zone_info.cc b/absl/time/internal/cctz/src/time_zone_info.cc index 01748708..b7178a6b 100644 --- a/absl/time/internal/cctz/src/time_zone_info.cc +++ b/absl/time/internal/cctz/src/time_zone_info.cc @@ -752,19 +752,6 @@ bool TimeZoneInfo::Load(ZoneInfoSource* zip) { version_ = zip->Version(); } - // Trim redundant transitions. zic may have added these to work around - // differences between the glibc and reference implementations (see - // zic.c:dontmerge) or to avoid bugs in old readers. For us, they just - // get in the way when we do future_spec_ extension. - while (hdr.timecnt > 1) { - if (!EquivTransitions(transitions_[hdr.timecnt - 1].type_index, - transitions_[hdr.timecnt - 2].type_index)) { - break; - } - hdr.timecnt -= 1; - } - transitions_.resize(hdr.timecnt); - // Ensure that there is always a transition in the first half of the // time line (the second half is handled below) so that the signed // difference between a civil_second and the civil_second of its |