Skip to content

Commit

Permalink
Delete a convenience method on a non-opaque FFI
Browse files Browse the repository at this point in the history
  • Loading branch information
hsivonen committed Nov 8, 2023
1 parent b0c8484 commit 474dcfe
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions ffi/capi/src/collator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,6 @@ pub mod ffi {
pub backward_second_level: ICU4XCollatorBackwardSecondLevel,
}

impl ICU4XCollatorResolvedOptionsV1 {
/// Convenience conversion for copying the options from an
/// existing collator into a new one (overriding any locale-provided
/// defaults of the new one!).
pub fn into_options(&self) -> ICU4XCollatorOptionsV1 {
ICU4XCollatorOptionsV1 {
strength: self.strength,
alternate_handling: self.alternate_handling,
case_first: self.case_first,
max_variable: self.max_variable,
case_level: self.case_level,
numeric: self.numeric,
backward_second_level: self.backward_second_level,
}
}
}

#[diplomat::rust_link(icu::collator::Strength, Enum)]
#[derive(Eq, PartialEq, Debug, Copy, Clone, PartialOrd, Ord)]
pub enum ICU4XCollatorStrength {
Expand Down

0 comments on commit 474dcfe

Please sign in to comment.