Skip to content

Commit 24b7b16

Browse files
committed
1 parent ea997a5 commit 24b7b16

File tree

2 files changed

+3
-10
lines changed
  • components

2 files changed

+3
-10
lines changed

components/calendar/src/cal/hijri.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,10 +1299,7 @@ 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+
None
13061303
}
13071304
}
13081305

@@ -1526,7 +1523,6 @@ impl Date<HijriIran> {
15261523
/// Construct new Hijri Iran Date.
15271524
///
15281525
/// ```rust
1529-
/// use icu::calendar::cal::HijriIran;
15301526
/// use icu::calendar::Date;
15311527
///
15321528
/// 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)