From 46d14ceab24ea6bb101cb5fbad5180a0d04b99b6 Mon Sep 17 00:00:00 2001 From: Phillip Pan Date: Mon, 5 Jun 2023 12:31:19 -0700 Subject: [PATCH] delete RCTHostCreationHelpers (#37703) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/37703 Changelog: [Internal] i did too good of a job refactoring that these functions don't abstract any arguments away anymore, so let's just delete it Reviewed By: javache Differential Revision: D46303713 fbshipit-source-id: 7e0508a7296ebc3d5c62cf0824071bd2ef041193 --- .../ios/Core/RCTHostCreationHelpers.h | 30 ------------------- .../ios/Core/RCTHostCreationHelpers.mm | 20 ------------- 2 files changed, 50 deletions(-) delete mode 100644 packages/react-native/ReactCommon/react/bridgeless/platform/ios/Core/RCTHostCreationHelpers.h delete mode 100644 packages/react-native/ReactCommon/react/bridgeless/platform/ios/Core/RCTHostCreationHelpers.mm diff --git a/packages/react-native/ReactCommon/react/bridgeless/platform/ios/Core/RCTHostCreationHelpers.h b/packages/react-native/ReactCommon/react/bridgeless/platform/ios/Core/RCTHostCreationHelpers.h deleted file mode 100644 index da866c481a9..00000000000 --- a/packages/react-native/ReactCommon/react/bridgeless/platform/ios/Core/RCTHostCreationHelpers.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -#import -#import - -#import "RCTHost.h" - -@class RCTHost; - -@protocol RCTHostDelegate; -@protocol RCTTurboModuleManagerDelegate; - -NS_ASSUME_NONNULL_BEGIN - -RCT_EXTERN_C_BEGIN - -RCTHost *RCTHostCreateDefault( - NSURL *bundleURL, - id hostDelegate, - id turboModuleManagerDelegate, - RCTHostJSEngineProvider jsEngineProvider); - -RCT_EXTERN_C_END - -NS_ASSUME_NONNULL_END diff --git a/packages/react-native/ReactCommon/react/bridgeless/platform/ios/Core/RCTHostCreationHelpers.mm b/packages/react-native/ReactCommon/react/bridgeless/platform/ios/Core/RCTHostCreationHelpers.mm deleted file mode 100644 index 42a299c9610..00000000000 --- a/packages/react-native/ReactCommon/react/bridgeless/platform/ios/Core/RCTHostCreationHelpers.mm +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -#import "RCTHostCreationHelpers.h" - -RCTHost *RCTHostCreateDefault( - NSURL *bundleURL, - id hostDelegate, - id turboModuleManagerDelegate, - RCTHostJSEngineProvider jsEngineProvider) -{ - return [[RCTHost alloc] initWithBundleURL:bundleURL - hostDelegate:hostDelegate - turboModuleManagerDelegate:turboModuleManagerDelegate - jsEngineProvider:jsEngineProvider]; -}