| 1525 | } |
| 1526 | |
| 1527 | void StreamIndexedIO::Node::removeChild( const IndexedIO::EntryID &childName, bool throwException ) |
| 1528 | { |
| 1529 | DirectoryNode::ChildMap::iterator it = m_node->findChild( childName ); |
| 1530 | if ( it == m_node->children().end() ) |
| 1531 | { |
| 1532 | if (throwException) |
| 1533 | { |
| 1534 | throw IOException( "StreamIndexedIO::Node::removeChild: Entry not found '" + childName.value() + "'" ); |
| 1535 | } |
| 1536 | return; |
| 1537 | } |
| 1538 | |
| 1539 | NodeBase *child = *it; |
| 1540 | |
| 1541 | m_idx->deallocateWalk(child); |
| 1542 | |
| 1543 | m_node->children().erase( it ); |
| 1544 | } |
| 1545 | |
| 1546 | /////////////////////////////////////////////// |
| 1547 | // |
no test coverage detected