From 137138c2f685cb01c59aa4d3fee2bcfe04acae78 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Wed, 2 Sep 2026 10:46:09 +0200 Subject: [PATCH] ref: remove legacy console init wrapper Console SDKs now register platform integrations and call `sentry_init()` directly, so remove the conditional `sentry__native_init()` entry point wrapper. --- src/sentry_core.c | 9 --------- src/sentry_core.h | 8 -------- 2 files changed, 17 deletions(-) diff --git a/src/sentry_core.c b/src/sentry_core.c index 4c7d7bfa1..31e453ea0 100644 --- a/src/sentry_core.c +++ b/src/sentry_core.c @@ -147,17 +147,8 @@ sentry__exit_crash_handler(void) } } -// TODO: remove sentry__native_init after console SDKs have been migrated to -// platform integrations -#if (defined(SENTRY_PLATFORM_NX) || defined(SENTRY_PLATFORM_PS) \ - || defined(SENTRY_PLATFORM_XBOX)) \ - && !defined(SENTRY_INTEGRATION_PLATFORM) -int -sentry__native_init(sentry_options_t *options) -#else int sentry_init(sentry_options_t *options) -#endif { // pre-init here, so we can consistently use bailing out to :fail sentry_transport_t *transport = NULL; diff --git a/src/sentry_core.h b/src/sentry_core.h index 9255d35f1..0feb07529 100644 --- a/src/sentry_core.h +++ b/src/sentry_core.h @@ -165,12 +165,4 @@ bool sentry__should_send_transaction( sentry_value_t tx_ctx, sentry_sampling_context_t *sampling_ctx); #endif -// TODO: remove sentry__native_init after console SDKs have been migrated to -// platform integrations -#if (defined(SENTRY_PLATFORM_NX) || defined(SENTRY_PLATFORM_PS) \ - || defined(SENTRY_PLATFORM_XBOX)) \ - && !defined(SENTRY_INTEGRATION_PLATFORM) -int sentry__native_init(sentry_options_t *options); -#endif - #endif