Skip to content

Commit c254d55

Browse files
committed
Remove unused parameter
1 parent b4eb5bf commit c254d55

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/calendar.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ interface NonIsoHelperBase {
644644
reviseIntlEra?(calendarDate: any, isoDate?: any): { era: number; eraYear: number };
645645
hasEra?: boolean;
646646
constantEra?: string;
647-
checkIcuBugs?(calendarDate: any, isoDate: any): void;
647+
checkIcuBugs?(isoDate: any): void;
648648
calendarType?: string;
649649
monthsInYear?(calendarDate: any, cache?: any): number;
650650
maximumMonthLength?(calendarDate?: any): number;
@@ -762,7 +762,7 @@ const nonIsoHelperBase: NonIsoHelperBase = {
762762
result.era = era;
763763
result.eraYear = eraYear;
764764
}
765-
if (this.checkIcuBugs) this.checkIcuBugs(result, isoDate);
765+
if (this.checkIcuBugs) this.checkIcuBugs(isoDate);
766766

767767
const calendarDate = this.adjustCalendarDate(result, cache, 'constrain', true);
768768
if (calendarDate.year === undefined) throw new RangeError(`Missing year converting ${JSON.stringify(isoDate)}`);
@@ -1486,7 +1486,7 @@ const helperIndian: NonIsoHelperBase = ObjectAssign({}, nonIsoHelperBase, {
14861486
// expected.
14871487
vulnerableToBceBug:
14881488
new Date('0000-01-01T00:00Z').toLocaleDateString('en-US-u-ca-indian', { timeZone: 'UTC' }) !== '10/11/-79 Saka',
1489-
checkIcuBugs(calendarDate, isoDate) {
1489+
checkIcuBugs(isoDate) {
14901490
if (this.vulnerableToBceBug && isoDate.year < 1) {
14911491
throw new RangeError(
14921492
`calendar '${this.id}' is broken for ISO dates before 0001-01-01` +
@@ -1795,7 +1795,7 @@ const makeHelperGregorian = (id: BuiltinCalendarId, originalEras: InputEra[]) =>
17951795
.toLocaleDateString('en-US-u-ca-japanese', { timeZone: 'UTC' })
17961796
.startsWith('12'),
17971797
calendarIsVulnerableToJulianBug: false,
1798-
checkIcuBugs(calendarDate, isoDate) {
1798+
checkIcuBugs(isoDate) {
17991799
if (this.calendarIsVulnerableToJulianBug && this.v8IsVulnerableToJulianBug) {
18001800
const beforeJulianSwitch = ES.CompareISODate(isoDate.year, isoDate.month, isoDate.day, 1582, 10, 15) < 0;
18011801
if (beforeJulianSwitch) {

0 commit comments

Comments
 (0)