diff --git a/ReactCommon/fabric/core/shadownode/ConcreteShadowNode.h b/ReactCommon/fabric/core/shadownode/ConcreteShadowNode.h index 2bee6a31896..fded3fe4bd1 100644 --- a/ReactCommon/fabric/core/shadownode/ConcreteShadowNode.h +++ b/ReactCommon/fabric/core/shadownode/ConcreteShadowNode.h @@ -120,27 +120,6 @@ class ConcreteShadowNode : public BaseShadowNodeT { state_ = std::make_shared( std::make_shared(std::move(data)), *state_); } - - /* - * Returns subset of children that are inherited from `SpecificShadowNodeT`. - */ - template - better:: - small_vector - getChildrenSlice() const { - better:: - small_vector - children; - for (auto const &childShadowNode : ShadowNode::getChildren()) { - auto specificChildShadowNode = - dynamic_cast(childShadowNode.get()); - if (specificChildShadowNode) { - children.push_back( - const_cast(specificChildShadowNode)); - } - } - return children; - } }; } // namespace react