Unbind (unregister) a previously registered method. Returns true if method was found and removed, false otherwise.
| 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() { |
no test coverage detected