diff --git a/src/enumeration.rs b/src/enumeration.rs index c5e48c0..e3b59ba 100644 --- a/src/enumeration.rs +++ b/src/enumeration.rs @@ -465,20 +465,9 @@ impl UsbControllerType { _ => None, } } - - #[allow(dead_code)] // not used on all platforms - pub(crate) fn from_bcd(bcd: u16) -> Option { - match bcd & 0xF00 { - 0x300 => Some(UsbControllerType::XHCI), - 0x200 => Some(UsbControllerType::EHCI), - // assume open version - 0x100 => Some(UsbControllerType::OHCI), - _ => None, - } - } } -/// Information about a system USB bus. Aims to be a more useful and portable version of the Linux root hub device. +/// Information about a system USB bus. /// /// Platform-specific fields: /// * Linux: `path`, `parent_path`, `busnum`, `root_hub` diff --git a/src/platform/macos_iokit/enumeration.rs b/src/platform/macos_iokit/enumeration.rs index 4fe7919..1f9f850 100644 --- a/src/platform/macos_iokit/enumeration.rs +++ b/src/platform/macos_iokit/enumeration.rs @@ -218,11 +218,6 @@ fn get_integer_property(device: &IoService, property: &'static str) -> Option Option> { - let d = get_property::(device, property)?; - Some(d.bytes().to_vec()) -} - fn get_ascii_array_property(device: &IoService, property: &'static str) -> Option { let d = get_property::(device, property)?; Some(