Skip to content

Commit d61c291

Browse files
committed
1 parent ea997a5 commit d61c291

File tree

2 files changed

+4
-10
lines changed
  • components

2 files changed

+4
-10
lines changed

components/calendar/src/cal/hijri.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,10 +1299,8 @@ impl Calendar for HijriIran {
12991299
}
13001300

13011301
fn calendar_algorithm(&self) -> Option<crate::preferences::CalendarAlgorithm> {
1302-
let expected_calendar = crate::preferences::CalendarAlgorithm::Hijri(Some(
1303-
crate::preferences::HijriCalendarAlgorithm::HijriIran,
1304-
));
1305-
Some(expected_calendar)
1302+
// There isn't any HijriCalendarAlgorithm entry associated with this right now, so
1303+
None
13061304
}
13071305
}
13081306

@@ -1526,7 +1524,6 @@ impl Date<HijriIran> {
15261524
/// Construct new Hijri Iran Date.
15271525
///
15281526
/// ```rust
1529-
/// use icu::calendar::cal::HijriIran;
15301527
/// use icu::calendar::Date;
15311528
///
15321529
/// let date_hijri =

components/locale_core/src/preferences/extensions/unicode/keywords/calendar.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ enum_keyword!(
2020
/// Hijri calendar, tabular (intercalary years \[2,5,7,10,13,16,18,21,24,26,29] - civil epoch)
2121
Civil,
2222
/// Hijri calendar, Saudi Arabia sighting
23-
Rgsa,
24-
/// Hijri calendar, Iran sighting
25-
HijriIran
23+
Rgsa
2624
});
2725

2826
#[cfg(feature = "alloc")]
@@ -58,8 +56,7 @@ enum_keyword!(
5856
("umalqura" => Umalqura),
5957
("tbla" => Tbla),
6058
("civil" => Civil),
61-
("rgsa" => Rgsa),
62-
("iran" => HijriIran)
59+
("rgsa" => Rgsa)
6360
}),
6461
/// ISO calendar (Gregorian calendar using the ISO 8601 calendar week rules)
6562
("iso8601" => Iso8601),

0 commit comments

Comments
 (0)