diff --git a/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.h b/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.h index 18756624d42797..5e112440b8cd41 100644 --- a/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.h +++ b/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.h @@ -15,16 +15,10 @@ @protocol RCTTurboModuleManagerDelegate -// TODO: Move to xplat codegen. -- (std::shared_ptr)getTurboModule:(const std::string &)name - initParams: - (const facebook::react::ObjCTurboModule::InitParams &)params; @optional - (NSArray *)getEagerInitModuleNames; - (NSArray *)getEagerInitMainQueueModuleNames; -@optional - /** * Given a module name, return its actual class. If not provided, basic ObjC class lookup is performed. */ diff --git a/packages/rn-tester/RNTester/AppDelegate.mm b/packages/rn-tester/RNTester/AppDelegate.mm index 012c26dd9e6cf6..70c973bd8de7b4 100644 --- a/packages/rn-tester/RNTester/AppDelegate.mm +++ b/packages/rn-tester/RNTester/AppDelegate.mm @@ -204,13 +204,6 @@ - (Class)getModuleClassFromName:(const char *)name return facebook::react::RNTesterTurboModuleProvider(name, jsInvoker); } -- (std::shared_ptr)getTurboModule:(const std::string &)name - initParams: - (const facebook::react::ObjCTurboModule::InitParams &)params -{ - return facebook::react::RNTesterTurboModuleProvider(name, params); -} - - (id)getModuleInstanceFromClass:(Class)moduleClass { if (moduleClass == RCTImageLoader.class) { diff --git a/packages/rn-tester/RNTester/RNTesterTurboModuleProvider.h b/packages/rn-tester/RNTester/RNTesterTurboModuleProvider.h index 7c80b27b39a534..1fc0e2040d9d0d 100644 --- a/packages/rn-tester/RNTester/RNTesterTurboModuleProvider.h +++ b/packages/rn-tester/RNTester/RNTesterTurboModuleProvider.h @@ -20,11 +20,5 @@ Class RNTesterTurboModuleClassProvider(const char *name); */ std::shared_ptr RNTesterTurboModuleProvider(const std::string &name, std::shared_ptr jsInvoker); -/** - * Provide an instance of a ObjCTurboModule, given the ObjC instance, specific to this app. - */ -std::shared_ptr RNTesterTurboModuleProvider(const std::string &name, - const ObjCTurboModule::InitParams ¶ms); - } // namespace react } // namespace facebook diff --git a/packages/rn-tester/RNTester/RNTesterTurboModuleProvider.mm b/packages/rn-tester/RNTester/RNTesterTurboModuleProvider.mm index 97e5a16ced6eff..25c77f05c6f38c 100644 --- a/packages/rn-tester/RNTester/RNTesterTurboModuleProvider.mm +++ b/packages/rn-tester/RNTester/RNTesterTurboModuleProvider.mm @@ -28,14 +28,5 @@ Class RNTesterTurboModuleClassProvider(const char *name) { return nullptr; } -std::shared_ptr RNTesterTurboModuleProvider(const std::string &name, - const ObjCTurboModule::InitParams ¶ms) { - if (name == "SampleTurboModule") { - return std::make_shared(params); - } - - return nullptr; -} - } // namespace react } // namespace facebook