diff --git a/packages/react-native/ReactCommon/react/renderer/core/ShadowNodeFragment.cpp b/packages/react-native/ReactCommon/react/renderer/core/ShadowNodeFragment.cpp index 6ce91d8f8dd2c4..24a56757580a38 100644 --- a/packages/react-native/ReactCommon/react/renderer/core/ShadowNodeFragment.cpp +++ b/packages/react-native/ReactCommon/react/renderer/core/ShadowNodeFragment.cpp @@ -31,15 +31,4 @@ const State::Shared& ShadowNodeFragment::statePlaceholder() { return instance; } -using Value = ShadowNodeFragment::Value; - -Value::Value(const ShadowNodeFragment& fragment) - : props(fragment.props), - children(fragment.children), - state(fragment.state) {} - -Value::operator ShadowNodeFragment() const { - return ShadowNodeFragment{props, children, state}; -} - } // namespace facebook::react diff --git a/packages/react-native/ReactCommon/react/renderer/core/ShadowNodeFragment.h b/packages/react-native/ReactCommon/react/renderer/core/ShadowNodeFragment.h index 84efaa8c3bd26c..66ea8cdc0d52e1 100644 --- a/packages/react-native/ReactCommon/react/renderer/core/ShadowNodeFragment.h +++ b/packages/react-native/ReactCommon/react/renderer/core/ShadowNodeFragment.h @@ -21,8 +21,6 @@ namespace facebook::react { * Note: Most of the fields are `const &` references (essentially just raw * pointers) which means that the Fragment does not copy/store them nor * retain ownership of them. - * Use `ShadowNodeFragment::Value` (see below) to create an owning copy of the - * fragment content to store or pass the data asynchronously. */ struct ShadowNodeFragment { const Props::Shared& props = propsPlaceholder(); @@ -37,28 +35,6 @@ struct ShadowNodeFragment { static const Props::Shared& propsPlaceholder(); static const ShadowNode::SharedListOfShared& childrenPlaceholder(); static const State::Shared& statePlaceholder(); - - /* - * `ShadowNodeFragment` is not owning data-structure, it only stores raw - * pointers to the data. `ShadowNodeFragment::Value` is a convenient owning - * counterpart of that. - */ - class Value final { - public: - /* - * Creates an object with given `ShadowNodeFragment`. - */ - Value(const ShadowNodeFragment& fragment); - - /* - * Creates a `ShadowNodeFragment` from the object. - */ - explicit operator ShadowNodeFragment() const; - - Props::Shared props; - ShadowNode::SharedListOfShared children; - State::Shared state; - }; }; } // namespace facebook::react