MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / remove

Function remove

src/Engine/src/Input/ShortcutManager.cpp:37–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 }
36
37 void remove(Shortcut id)
38 {
39 auto it = findShortcut(id);
40 if (it == std::end(_shortcuts) || it->id != id)
41 {
42 return;
43 }
44 _shortcuts.erase(it);
45 }
46
47 void execute(Shortcut id)
48 {

Callers

nothing calls this directly

Calls 2

findShortcutFunction · 0.85
endFunction · 0.85

Tested by

no test coverage detected