------------------------------------------------------------------------------
| 632 | |
| 633 | //------------------------------------------------------------------------------ |
| 634 | void vtkXMLUtilities::UnFactorElements(vtkXMLDataElement* tree) |
| 635 | { |
| 636 | if (!tree) |
| 637 | { |
| 638 | return; |
| 639 | } |
| 640 | |
| 641 | // Search for the factored pool, if not found, we are done |
| 642 | |
| 643 | vtkXMLDataElement* pool = tree->FindNestedElementWithName(VTK_XML_UTILITIES_FACTORED_POOL_NAME); |
| 644 | if (!pool) |
| 645 | { |
| 646 | return; |
| 647 | } |
| 648 | |
| 649 | // Remove the pool from the tree, because it makes no sense |
| 650 | // unfactoring it too |
| 651 | |
| 652 | pool->Register(tree); |
| 653 | tree->RemoveNestedElement(pool); |
| 654 | |
| 655 | // Unfactor the tree |
| 656 | |
| 657 | vtkXMLUtilities::UnFactorElementsInternal(tree, pool); |
| 658 | |
| 659 | // Remove the useless empty pool |
| 660 | |
| 661 | pool->UnRegister(tree); |
| 662 | } |
| 663 | |
| 664 | //------------------------------------------------------------------------------ |
| 665 | int vtkXMLUtilities::UnFactorElementsInternal(vtkXMLDataElement* tree, vtkXMLDataElement* pool) |
nothing calls this directly
no test coverage detected