| 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 | { |
no test coverage detected