MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / __hxcpp_anon_remove

Function __hxcpp_anon_remove

src/hx/Anon.cpp:434–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432}
433
434bool __hxcpp_anon_remove(Dynamic inObj,String inKey)
435{
436 hx::Anon_obj *anon = dynamic_cast<hx::Anon_obj *>(inObj.mPtr);
437 if (anon)
438 {
439 bool removed = anon->__Remove(inKey);
440 if (removed)
441 return true;
442 }
443 Dynamic *map = inObj->__GetFieldMap();
444 if (map)
445 return __string_hash_remove(*map,inKey);
446 return false;
447}
448
449

Callers

nothing calls this directly

Calls 3

__string_hash_removeFunction · 0.85
__RemoveMethod · 0.80
__GetFieldMapMethod · 0.80

Tested by

no test coverage detected