MCPcopy Create free account
hub / github.com/DFHack/dfhack / remove

Method remove

library/include/modules/GuiHooks.h:20–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 funcs.push_back(func);
19 }
20 void remove(T_func *func)
21 {
22 auto it = std::find(funcs.begin(), funcs.end(), func);
23 if (it != funcs.end())
24 funcs.erase(it);
25 }
26 public:
27 Hook(T_func* base) : base_func(base)
28 { }

Callers 1

applyMethod · 0.45

Calls 4

findFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected