MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / removeDevice

Method removeDevice

src/libfreenect2.cpp:426–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424 }
425
426 void removeDevice(Freenect2DeviceImpl *device)
427 {
428 if (!initialized)
429 return;
430
431 DeviceVector::iterator it = std::find(devices_.begin(), devices_.end(), device);
432
433 if(it != devices_.end())
434 {
435 devices_.erase(it);
436 }
437 else
438 {
439 LOG_WARNING << "tried to remove device, which is not in the internal device list!";
440 }
441 }
442
443 bool tryGetDevice(libusb_device *usb_device, Freenect2DeviceImpl **device)
444 {

Callers 2

~Freenect2DeviceImplMethod · 0.45

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected