MCPcopy Create free account
hub / github.com/FastLED/FastLED / unbind

Method unbind

src/fl/remote/rpc/rpc.h:292–300  ·  view source on GitHub ↗

Unbind (unregister) a previously registered method. Returns true if method was found and removed, false otherwise.

Source from the content-addressed store, hash-verified

290 /// Unbind (unregister) a previously registered method.
291 /// Returns true if method was found and removed, false otherwise.
292 bool unbind(const char* name) {
293 fl::string key(name);
294 auto it = mRegistry.find(key);
295 if (it != mRegistry.end()) {
296 mRegistry.erase(it);
297 return true;
298 }
299 return false;
300 }
301
302 /// Clear all registered methods.
303 void clear() {

Callers 1

FL_TEST_FILEFunction · 0.45

Calls 3

findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected