LibUnicode: Remove unused time zone cache option
Some checks are pending
CI / Lagom (FUZZ, ubuntu-22.04, Linux, Clang) (push) Waiting to run
CI / Lagom (NO_FUZZ, macos-14, macOS, Clang) (push) Waiting to run
CI / Lagom (NO_FUZZ, ubuntu-22.04, Linux, Clang) (push) Waiting to run
CI / Lagom (NO_FUZZ, ubuntu-22.04, Linux, GNU) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (macos-14, macOS, macOS-universal2) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (ubuntu-22.04, Linux, Linux-x86_64) (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Push notes / build (push) Waiting to run

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
parent 003fc4f8ee
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);