diff --git a/packages/react-native/ReactCommon/yoga/yoga/YGNode.cpp b/packages/react-native/ReactCommon/yoga/yoga/YGNode.cpp index 90e13fadceb0d0..9045037b87381d 100644 --- a/packages/react-native/ReactCommon/yoga/yoga/YGNode.cpp +++ b/packages/react-native/ReactCommon/yoga/yoga/YGNode.cpp @@ -23,17 +23,6 @@ YGNode::YGNode(const YGConfigRef config) : config_{config} { } }; -YGNode::YGNode(const YGNode& node, YGConfigRef config) : YGNode{node} { - YGAssert( - config != nullptr, "Attempting to construct YGNode with null config"); - - config_ = config; - flags_.hasNewLayout = true; - if (config->useWebDefaults) { - useWebDefaults(); - } -} - YGNode::YGNode(YGNode&& node) { context_ = node.context_; flags_ = node.flags_; diff --git a/packages/react-native/ReactCommon/yoga/yoga/YGNode.h b/packages/react-native/ReactCommon/yoga/yoga/YGNode.h index b57a1207af9ac8..6f9cab38e5b9c3 100644 --- a/packages/react-native/ReactCommon/yoga/yoga/YGNode.h +++ b/packages/react-native/ReactCommon/yoga/yoga/YGNode.h @@ -93,10 +93,6 @@ struct YOGA_EXPORT YGNode { // Should we remove this? YGNode(const YGNode& node) = default; - [[deprecated("Will be removed imminently")]] YGNode( - const YGNode& node, - YGConfigRef config); - // assignment means potential leaks of existing children, or alternatively // freeing unowned memory, double free, or freeing stack memory. YGNode& operator=(const YGNode&) = delete;