MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / removeHandler

Method removeHandler

source/core/StarJsonRpc.cpp:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24void JsonRpc::removeHandler(String const& handler) {
25 if (!m_handlers.contains(handler))
26 throw JsonRpcException(strf("No such handler by the name '{}'", handler));
27
28 m_handlers.remove(handler);
29}
30
31void JsonRpc::clearHandlers() {
32 m_handlers.clear();

Callers

nothing calls this directly

Calls 3

strfFunction · 0.85
containsMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected