mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 18:00:16 +00:00
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:
parent
003fc4f8ee
commit
fa4b324a12
Notes:
github-actions[bot]
2024-08-26 15:37:56 +00:00
Author: https://github.com/trflynn89
Commit: fa4b324a12
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1194
Reviewed-by: https://github.com/gmta ✅
2 changed files with 2 additions and 7 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue