void SdfNamespaceEdit_Namespace::_RemoveDeadspace(const SdfPath& path) { // Never remove the absolute root path. if (!TF_VERIFY(path != SdfPath::AbsoluteRootPath())) { return; } // Find the extent of the subtree with path as a prefix. SdfPathSet::iterator i = _deadspace.lower_bound(path); SdfPathSet::iterator n = i; while (n != _deadspace.end() && n->HasPrefix(path)) { ++n; } // Remove the subtree. _deadspace.erase(i, n); }