mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 08:11:13 +00:00
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
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:
parent
003fc4f8ee
commit
fa4b324a12
Notes:
github-actions[bot]
2024-08-26 15:37:56 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/fa4b324a124 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1194 Reviewed-by: https://github.com/gmta ✅
|
@ -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…
Reference in a new issue