MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / cleanup

Method cleanup

core/object/class_db.cpp:2410–2430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2408}
2409
2410void ClassDB::cleanup() {
2411 //OBJTYPE_LOCK; hah not here
2412
2413 for (KeyValue<StringName, ClassInfo> &E : classes) {
2414 ClassInfo &ti = E.value;
2415
2416 for (KeyValue<StringName, MethodBind *> &F : ti.method_map) {
2417 memdelete(F.value);
2418 }
2419 for (KeyValue<StringName, LocalVector<MethodBind *>> &F : ti.method_map_compatibility) {
2420 for (uint32_t i = 0; i < F.value.size(); i++) {
2421 memdelete(F.value[i]);
2422 }
2423 }
2424 }
2425
2426 classes.clear();
2427 resource_base_extensions.clear();
2428 compat_classes.clear();
2429 native_structs.clear();
2430}
2431
2432Array ClassDB::default_array_arg = Array::create_read_only();
2433

Callers

nothing calls this directly

Calls 3

memdeleteFunction · 0.85
sizeMethod · 0.65
clearMethod · 0.45

Tested by

no test coverage detected