Skip to content

Commit 8d95ce4

Browse files
sammy-SCmeta-codesync[bot]
authored andcommitted
Remove dead RAMBundleRegistry::multipleBundlesRegistry static factory
Summary: `RAMBundleRegistry::multipleBundlesRegistry` was a static factory wrapping the public `RAMBundleRegistry` constructor (the one taking a main bundle plus a factory callback), but it had no callers anywhere. Registries are constructed via the public constructor directly. With the sibling `singleBundleRegistry` already removed, this deletes the last orphaned static factory; the constructor and the rest of the class remain intact. Changelog: [Internal] Differential Revision: D108012906
1 parent a3fc91d commit 8d95ce4

8 files changed

Lines changed: 0 additions & 17 deletions

File tree

packages/react-native/ReactCommon/cxxreact/RAMBundleRegistry.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ namespace facebook::react {
2020
constexpr uint32_t RAMBundleRegistry::MAIN_BUNDLE_ID;
2121
#pragma clang diagnostic pop
2222

23-
std::unique_ptr<RAMBundleRegistry> RAMBundleRegistry::multipleBundlesRegistry(
24-
std::unique_ptr<JSModulesUnbundle> mainBundle,
25-
std::function<std::unique_ptr<JSModulesUnbundle>(std::string)> factory) {
26-
return std::make_unique<RAMBundleRegistry>(
27-
std::move(mainBundle), std::move(factory));
28-
}
29-
3023
RAMBundleRegistry::RAMBundleRegistry(
3124
std::unique_ptr<JSModulesUnbundle> mainBundle,
3225
std::function<std::unique_ptr<JSModulesUnbundle>(std::string)> factory)

packages/react-native/ReactCommon/cxxreact/RAMBundleRegistry.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ class RN_EXPORT [[deprecated("This API will be removed along with the legacy arc
2727
public:
2828
constexpr static uint32_t MAIN_BUNDLE_ID = 0;
2929

30-
static std::unique_ptr<RAMBundleRegistry> multipleBundlesRegistry(
31-
std::unique_ptr<JSModulesUnbundle> mainBundle,
32-
std::function<std::unique_ptr<JSModulesUnbundle>(std::string)> factory);
33-
3430
explicit RAMBundleRegistry(
3531
std::unique_ptr<JSModulesUnbundle> mainBundle,
3632
std::function<std::unique_ptr<JSModulesUnbundle>(std::string)> factory = nullptr);

scripts/cxx-api/api-snapshots/ReactAndroidDebugCxx.api

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4176,7 +4176,6 @@ class facebook::react::RAMBundleRegistry {
41764176
public facebook::react::JSModulesUnbundle::Module getModule(uint32_t bundleId, uint32_t moduleId);
41774177
public facebook::react::RAMBundleRegistry& operator=(facebook::react::RAMBundleRegistry&&) = default;
41784178
public static constexpr uint32_t MAIN_BUNDLE_ID;
4179-
public static std::unique_ptr<facebook::react::RAMBundleRegistry> multipleBundlesRegistry(std::unique_ptr<facebook::react::JSModulesUnbundle> mainBundle, std::function<std::unique_ptr<facebook::react::JSModulesUnbundle>(std::string)> factory);
41804179
public virtual ~RAMBundleRegistry() = default;
41814180
public void registerBundle(uint32_t bundleId, std::string bundlePath);
41824181
}

scripts/cxx-api/api-snapshots/ReactAndroidReleaseCxx.api

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4173,7 +4173,6 @@ class facebook::react::RAMBundleRegistry {
41734173
public facebook::react::JSModulesUnbundle::Module getModule(uint32_t bundleId, uint32_t moduleId);
41744174
public facebook::react::RAMBundleRegistry& operator=(facebook::react::RAMBundleRegistry&&) = default;
41754175
public static constexpr uint32_t MAIN_BUNDLE_ID;
4176-
public static std::unique_ptr<facebook::react::RAMBundleRegistry> multipleBundlesRegistry(std::unique_ptr<facebook::react::JSModulesUnbundle> mainBundle, std::function<std::unique_ptr<facebook::react::JSModulesUnbundle>(std::string)> factory);
41774176
public virtual ~RAMBundleRegistry() = default;
41784177
public void registerBundle(uint32_t bundleId, std::string bundlePath);
41794178
}

scripts/cxx-api/api-snapshots/ReactAppleDebugCxx.api

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6357,7 +6357,6 @@ class facebook::react::RAMBundleRegistry {
63576357
public facebook::react::JSModulesUnbundle::Module getModule(uint32_t bundleId, uint32_t moduleId);
63586358
public facebook::react::RAMBundleRegistry& operator=(facebook::react::RAMBundleRegistry&&) = default;
63596359
public static constexpr uint32_t MAIN_BUNDLE_ID;
6360-
public static std::unique_ptr<facebook::react::RAMBundleRegistry> multipleBundlesRegistry(std::unique_ptr<facebook::react::JSModulesUnbundle> mainBundle, std::function<std::unique_ptr<facebook::react::JSModulesUnbundle>(std::string)> factory);
63616360
public virtual ~RAMBundleRegistry() = default;
63626361
public void registerBundle(uint32_t bundleId, std::string bundlePath);
63636362
}

scripts/cxx-api/api-snapshots/ReactAppleReleaseCxx.api

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6354,7 +6354,6 @@ class facebook::react::RAMBundleRegistry {
63546354
public facebook::react::JSModulesUnbundle::Module getModule(uint32_t bundleId, uint32_t moduleId);
63556355
public facebook::react::RAMBundleRegistry& operator=(facebook::react::RAMBundleRegistry&&) = default;
63566356
public static constexpr uint32_t MAIN_BUNDLE_ID;
6357-
public static std::unique_ptr<facebook::react::RAMBundleRegistry> multipleBundlesRegistry(std::unique_ptr<facebook::react::JSModulesUnbundle> mainBundle, std::function<std::unique_ptr<facebook::react::JSModulesUnbundle>(std::string)> factory);
63586357
public virtual ~RAMBundleRegistry() = default;
63596358
public void registerBundle(uint32_t bundleId, std::string bundlePath);
63606359
}

scripts/cxx-api/api-snapshots/ReactCommonDebugCxx.api

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2757,7 +2757,6 @@ class facebook::react::RAMBundleRegistry {
27572757
public facebook::react::JSModulesUnbundle::Module getModule(uint32_t bundleId, uint32_t moduleId);
27582758
public facebook::react::RAMBundleRegistry& operator=(facebook::react::RAMBundleRegistry&&) = default;
27592759
public static constexpr uint32_t MAIN_BUNDLE_ID;
2760-
public static std::unique_ptr<facebook::react::RAMBundleRegistry> multipleBundlesRegistry(std::unique_ptr<facebook::react::JSModulesUnbundle> mainBundle, std::function<std::unique_ptr<facebook::react::JSModulesUnbundle>(std::string)> factory);
27612760
public virtual ~RAMBundleRegistry() = default;
27622761
public void registerBundle(uint32_t bundleId, std::string bundlePath);
27632762
}

scripts/cxx-api/api-snapshots/ReactCommonReleaseCxx.api

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2754,7 +2754,6 @@ class facebook::react::RAMBundleRegistry {
27542754
public facebook::react::JSModulesUnbundle::Module getModule(uint32_t bundleId, uint32_t moduleId);
27552755
public facebook::react::RAMBundleRegistry& operator=(facebook::react::RAMBundleRegistry&&) = default;
27562756
public static constexpr uint32_t MAIN_BUNDLE_ID;
2757-
public static std::unique_ptr<facebook::react::RAMBundleRegistry> multipleBundlesRegistry(std::unique_ptr<facebook::react::JSModulesUnbundle> mainBundle, std::function<std::unique_ptr<facebook::react::JSModulesUnbundle>(std::string)> factory);
27582757
public virtual ~RAMBundleRegistry() = default;
27592758
public void registerBundle(uint32_t bundleId, std::string bundlePath);
27602759
}

0 commit comments

Comments
 (0)