From cf2f59c78d47cb371ddc71a812f50b977bbea045 Mon Sep 17 00:00:00 2001 From: Mehdi M Date: Fri, 19 Apr 2024 15:39:37 +0200 Subject: [PATCH] Remove unused `Temporal` imports --- src/temporal/datetime-class.js | 1 - src/temporal/utils/temporal.js | 1 - 2 files changed, 2 deletions(-) diff --git a/src/temporal/datetime-class.js b/src/temporal/datetime-class.js index 1fb9dd0..6886253 100644 --- a/src/temporal/datetime-class.js +++ b/src/temporal/datetime-class.js @@ -1,6 +1,5 @@ import { MILLISECONDS_PER_WEEK } from './utils/const.js' import { datetime, weekNumber } from './index.js' -// import { Temporal } from '@js-temporal/polyfill' export class DateTime extends Date { diff --git a/src/temporal/utils/temporal.js b/src/temporal/utils/temporal.js index b57aab9..2d9170d 100644 --- a/src/temporal/utils/temporal.js +++ b/src/temporal/utils/temporal.js @@ -1,4 +1,3 @@ -// import { Temporal, Intl, toTemporalInstant } from '@js-temporal/polyfill' import { Temporal } from '@js-temporal/polyfill' export const dateToPlainDate = d => new Temporal.PlainDate(d.getFullYear(), d.getMonth() + 1, d.getDate())