| 810 | } |
| 811 | |
| 812 | void delete_unit(Unit *unit) |
| 813 | { |
| 814 | auto cur = hash_map::begin(unit->_children); |
| 815 | auto end = hash_map::end(unit->_children); |
| 816 | for (; cur != end; ++cur) { |
| 817 | HASH_MAP_SKIP_HOLE(unit->_children, cur); |
| 818 | |
| 819 | delete_unit(cur->second); |
| 820 | } |
| 821 | |
| 822 | CE_DELETE(default_allocator(), unit); |
| 823 | } |
| 824 | |
| 825 | void to_flat(FlatJsonObject &obj, const char *json_object, DynamicString &prefix) |
| 826 | { |
no test coverage detected