LibUnicode: Remove unused time zone cache option

Added this during development while testing some callers, but forgot to
remove it before opening a PR.
This commit is contained in:
Timothy Flynn 2024-08-26 10:20:24 -04:00 committed by Tim Flynn
commit fa4b324a12
Notes: github-actions[bot] 2024-08-26 15:37:56 +00:00
2 changed files with 2 additions and 7 deletions

View file

@ -17,7 +17,7 @@ namespace Unicode {
static Optional<String> cached_system_time_zone;
String current_time_zone(UseTimeZoneCache)
String current_time_zone()
{
if (cached_system_time_zone.has_value())
return *cached_system_time_zone;

View file

@ -23,12 +23,7 @@ struct TimeZoneOffset {
InDST in_dst { InDST::No };
};
enum class UseTimeZoneCache {
No,
Yes,
};
String current_time_zone(UseTimeZoneCache = UseTimeZoneCache::Yes);
String current_time_zone();
void clear_system_time_zone_cache();
Vector<String> const& available_time_zones();
Vector<String> available_time_zones_in_region(StringView region);