MCPcopy Create free account
hub / github.com/Snapchat/Valdi / destroyNode

Method destroyNode

valdi/src/valdi/runtime/Context/ViewNode.cpp:117–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115LazyLayoutData::~LazyLayoutData() {
116 destroyNode();
117}
118
119void LazyLayoutData::destroyNode() {
120 if (yogaNode != nullptr) {
121 facebook::yoga::resolveRef(yogaNode)->setDirtiedFunc(nullptr);
122 while (YGNodeGetChildCount(yogaNode) > 0) {
123 YGNodeRemoveChild(yogaNode, YGNodeGetChild(yogaNode, 0));
124 }
125 destroyYogaNode(yogaNode);

Callers 1

setIsLazyLayoutMethod · 0.45

Calls 1

destroyYogaNodeFunction · 0.85

Tested by

no test coverage detected