| 115 | LazyLayoutData::~LazyLayoutData() { |
| 116 | destroyNode(); |
| 117 | } |
| 118 | |
| 119 | void 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); |
no test coverage detected