MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / remove_sink

Method remove_sink

source/binding/NodeJS/src/apis/controller.cpp:96–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96void ControllerImpl::remove_sink(MaaSinkId id)
97{
98 if (auto it = sinks.find(id); it != sinks.end()) {
99 MaaControllerRemoveSink(controller, id);
100 delete it->second;
101 sinks.erase(it);
102 }
103}
104
105void ControllerImpl::clear_sinks()
106{

Callers

nothing calls this directly

Calls 2

MaaControllerRemoveSinkFunction · 0.85
findMethod · 0.45

Tested by

no test coverage detected