Skip to content

Commit

Permalink
Remove mutable era style (#6026)
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth authored Jan 22, 2025
1 parent 9734287 commit 3cad93c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions components/calendar/src/ethiopian.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,6 @@ impl Ethiopian {
pub const fn new_with_era_style(era_style: EthiopianEraStyle) -> Self {
Self(matches!(era_style, EthiopianEraStyle::AmeteAlem))
}
/// Set whether or not this uses the Amete Alem era scheme
pub fn set_era_style(&mut self, era_style: EthiopianEraStyle) {
self.0 = era_style == EthiopianEraStyle::AmeteAlem
}

/// Returns whether this has the Amete Alem era
pub fn era_style(&self) -> EthiopianEraStyle {
Expand Down

0 comments on commit 3cad93c

Please sign in to comment.