From e036f4a78616a1eb72d2d372eda78724fb917fa3 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Wed, 4 Aug 2021 22:28:21 +0100 Subject: LibJS: Make regulate_iso_date() and iso_date_from_fields() use ISODate No need for TemporalDate, we don't use the calendar field here anyway. --- Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h') diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h b/Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h index 6cab0c015d..b0985fe52d 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h +++ b/Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h @@ -7,7 +7,6 @@ #pragma once -#include #include namespace JS::Temporal { @@ -43,7 +42,7 @@ struct ISODate { PlainDate* create_temporal_date(GlobalObject&, i32 iso_year, u8 iso_month, u8 iso_day, Object& calendar, FunctionObject* new_target = nullptr); PlainDate* to_temporal_date(GlobalObject&, Value item, Object* options = nullptr); -Optional regulate_iso_date(GlobalObject&, double year, double month, double day, String const& overflow); +Optional regulate_iso_date(GlobalObject&, double year, double month, double day, String const& overflow); bool is_valid_iso_date(i32 year, u8 month, u8 day); ISODate balance_iso_date(i32 year, i32 month, i32 day); i8 compare_iso_date(i32 year1, u8 month1, u8 day1, i32 year2, u8 month2, u8 day2); -- cgit v1.2.3