Skip to content

Commit

Permalink
rm call_constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Dec 13, 2024
1 parent cb3f7d0 commit 0f09c6b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions ffi/capi/src/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,18 +212,6 @@ where
load!();
}

#[macro_export]
macro_rules! call_constructor {
($buffer:path, $provider:expr $(, $args:expr)* $(,)?) => {
match &$provider.0 {
$crate::provider::DataProviderInner::Destroyed => Err(icu_provider::DataError::custom(
"This provider has been destroyed",
))?,
$crate::provider::DataProviderInner::Buffer(buffer_provider) => $buffer(buffer_provider, $($args,)*),
}
};
}

#[macro_export]
macro_rules! call_constructor_unstable {
($unstable:path, $provider:expr $(, $args:expr)* $(,)?) => {
Expand Down

0 comments on commit 0f09c6b

Please sign in to comment.