MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / RemoveModule

Method RemoveModule

src/base/AFPluginManager.hpp:118–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 }
117
118 void RemoveModule(const std::string& module_name)
119 {
120 auto iter = module_instances_.find(module_name);
121 if (iter == module_instances_.end())
122 {
123 return;
124 }
125
126 auto module_ptr = iter->second;
127 module_instances_.erase(module_name);
128
129 auto it = std::find(ordered_module_instances_.begin(), ordered_module_instances_.end(), module_ptr);
130 if (it != ordered_module_instances_.end())
131 {
132 ordered_module_instances_.erase(it);
133 }
134 }
135
136 bool AddUpdateModule(AFIModule* pModule)
137 {

Callers

nothing calls this directly

Calls 5

findFunction · 0.85
findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected