| 459 | } |
| 460 | |
| 461 | void Node::reset() { |
| 462 | yoga::assertFatalWithNode( |
| 463 | this, |
| 464 | children_.empty(), |
| 465 | "Cannot reset a node which still has children attached"); |
| 466 | yoga::assertFatalWithNode( |
| 467 | this, owner_ == nullptr, "Cannot reset a node still attached to a owner"); |
| 468 | |
| 469 | *this = Node{getConfig()}; |
| 470 | } |
| 471 | |
| 472 | } // namespace facebook::yoga |
nothing calls this directly
no test coverage detected