Skip to content

Commit

Permalink
LibUnicode: Remove unused time zone cache option
Browse files Browse the repository at this point in the history
Added this during development while testing some callers, but forgot to
remove it before opening a PR.
  • Loading branch information
trflynn89 committed Aug 26, 2024
1 parent 003fc4f commit fa4b324
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Userland/Libraries/LibUnicode/TimeZone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 1 addition & 6 deletions Userland/Libraries/LibUnicode/TimeZone.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fa4b324

Please sign in to comment.