| 340 | } |
| 341 | |
| 342 | void DeviceManagerBase::processDeviceRemoval(const std::string& sysfs_devpath) |
| 343 | { |
| 344 | USBGUARD_LOG(Trace) << "sysfs_devpath=" << sysfs_devpath; |
| 345 | |
| 346 | try { |
| 347 | std::shared_ptr<Device> device = removeDevice(sysfs_devpath); |
| 348 | DeviceEvent(DeviceManager::EventType::Remove, device); |
| 349 | } |
| 350 | catch (...) { |
| 351 | /* Ignore for now */ |
| 352 | USBGUARD_LOG(Debug) << "Removal of an unknown device ignored."; |
| 353 | return; |
| 354 | } |
| 355 | } |
| 356 | |
| 357 | bool DeviceManagerBase::isPresentSysfsPath(const std::string& sysfs_path) const |
| 358 | { |
nothing calls this directly
no outgoing calls
no test coverage detected