mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
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
|
||||
|
||||
Reference in New Issue
Block a user