MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / removeDevice

Method removeDevice

core/src/devicemanager.cpp:98–107  ·  view source on GitHub ↗

This is only used by scan context collector - should I rethink this ? Map all devices to uris in scan context collector

Source from the content-addressed store, hash-verified

96// This is only used by scan context collector - should I rethink this ?
97// Map all devices to uris in scan context collector
98void DeviceManager::removeDevice(QString category, QString param)
99{
100
101 for(Device *d : qAsConst(map)) {
102 if(d->category() == category && d->param() == param) {
103 removeDeviceById(d->id());
104 return;
105 }
106 }
107}
108
109void DeviceManager::removeDeviceById(QString id)
110{

Callers

nothing calls this directly

Calls 3

categoryMethod · 0.80
paramMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected