Update clear_schemas() which is now handled by unique_ptr

This commit is contained in:
Thomas Krijnen
2025-10-03 14:18:50 +02:00
parent 5e10e61aca
commit ca3685900f
+2 -5
View File
@@ -266,9 +266,6 @@ void IfcParse::clear_schemas() {
#endif
Header_section_schema::clear_schema();
// clear any remaining registered schemas
// we pop schemas until map is empty, because map iteration is invalidated after each erasure
while (!schemas.empty()) {
delete schemas.begin()->second;
}
// Schemas are owned by their respective modules in a unique_ptr, so just clear the map
schemas.clear();
}