MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / RemoveComponent

Method RemoveComponent

src/Core/Component/Component.cpp:22–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 }
21
22 void ComponentBase::RemoveComponent(ComponentBase* component)
23 {
24 Components.erase(std::remove(Components.begin(), Components.end(), component),
25 Components.end());
26 }
27
28 ComponentBase::ComponentBase(const std::string& id)
29 : Identifiable(id)

Callers

nothing calls this directly

Calls 4

removeFunction · 0.85
eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected