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
This commit is contained in:
Valentin Shergin
2020-02-26 22:03:14 -08:00
committed by Facebook Github Bot
parent 33bf310920
commit 124c20b2b1
@@ -120,27 +120,6 @@ class ConcreteShadowNode : public BaseShadowNodeT {
state_ = std::make_shared<ConcreteState const>(
std::make_shared<ConcreteStateData const>(std::move(data)), *state_);
}
/*
* Returns subset of children that are inherited from `SpecificShadowNodeT`.
*/
template <typename SpecificShadowNodeT>
better::
small_vector<SpecificShadowNodeT *, kShadowNodeChildrenSmallVectorSize>
getChildrenSlice() const {
better::
small_vector<SpecificShadowNodeT *, kShadowNodeChildrenSmallVectorSize>
children;
for (auto const &childShadowNode : ShadowNode::getChildren()) {
auto specificChildShadowNode =
dynamic_cast<SpecificShadowNodeT const *>(childShadowNode.get());
if (specificChildShadowNode) {
children.push_back(
const_cast<SpecificShadowNodeT *>(specificChildShadowNode));
}
}
return children;
}
};
} // namespace react