From 124c20b2b148cc137bb11058bae8494bda68b2f7 Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Wed, 26 Feb 2020 22:03:14 -0800 Subject: [PATCH] Fabric: Removing `ConcreteShadowNode::getChildrenSlice` Summary: We don't use it anymore. Changelog: [Internal] Fabric-specific internal change. Reviewed By: sammy-SC, mdvacca Differential Revision: D20052028 fbshipit-source-id: 22c46b90d87b55465d3549c6de24393c33375833 --- .../core/shadownode/ConcreteShadowNode.h | 21 ------------------- 1 file changed, 21 deletions(-) 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