Skip to content

Commit bc7c757

Browse files
sammy-SCmeta-codesync[bot]
authored andcommitted
Remove dead RAMBundleRegistry::multipleBundlesRegistry static factory
Summary: X-link: #57137 `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] Reviewed By: mdvacca Differential Revision: D108012906 fbshipit-source-id: 7bb403ff7660317f0f5b422dca140ac69e048dac
1 parent b4de836 commit bc7c757

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
@@ -4179,7 +4179,6 @@ class facebook::react::RAMBundleRegistry {
41794179
public facebook::react::JSModulesUnbundle::Module getModule(uint32_t bundleId, uint32_t moduleId);
41804180
public facebook::react::RAMBundleRegistry& operator=(facebook::react::RAMBundleRegistry&&) = default;
41814181
public static constexpr uint32_t MAIN_BUNDLE_ID;
4182-
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);
41834182
public virtual ~RAMBundleRegistry() = default;
41844183
public void registerBundle(uint32_t bundleId, std::string bundlePath);
41854184
}

scripts/cxx-api/api-snapshots/ReactAndroidReleaseCxx.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/ReactAppleDebugCxx.api

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6360,7 +6360,6 @@ class facebook::react::RAMBundleRegistry {
63606360
public facebook::react::JSModulesUnbundle::Module getModule(uint32_t bundleId, uint32_t moduleId);
63616361
public facebook::react::RAMBundleRegistry& operator=(facebook::react::RAMBundleRegistry&&) = default;
63626362
public static constexpr uint32_t MAIN_BUNDLE_ID;
6363-
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);
63646363
public virtual ~RAMBundleRegistry() = default;
63656364
public void registerBundle(uint32_t bundleId, std::string bundlePath);
63666365
}

scripts/cxx-api/api-snapshots/ReactAppleReleaseCxx.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/ReactCommonDebugCxx.api

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2760,7 +2760,6 @@ class facebook::react::RAMBundleRegistry {
27602760
public facebook::react::JSModulesUnbundle::Module getModule(uint32_t bundleId, uint32_t moduleId);
27612761
public facebook::react::RAMBundleRegistry& operator=(facebook::react::RAMBundleRegistry&&) = default;
27622762
public static constexpr uint32_t MAIN_BUNDLE_ID;
2763-
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);
27642763
public virtual ~RAMBundleRegistry() = default;
27652764
public void registerBundle(uint32_t bundleId, std::string bundlePath);
27662765
}

scripts/cxx-api/api-snapshots/ReactCommonReleaseCxx.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
}

0 commit comments

Comments
 (0)