diff --git a/ffi/capi/src/provider.rs b/ffi/capi/src/provider.rs index 97cae2446c4..f82cd4fd0e1 100644 --- a/ffi/capi/src/provider.rs +++ b/ffi/capi/src/provider.rs @@ -216,18 +216,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)* $(,)?) => {