Skip to content

Commit

Permalink
DeviceAccess: Drop UsbDkWdmUsbDeviceIsHub
Browse files Browse the repository at this point in the history
This function is not used anymore.

Signed-off-by: Dmitry Fleytman <[email protected]>
  • Loading branch information
Dmitry Fleytman committed Jan 28, 2016
1 parent 6b21ddc commit fa23267
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
14 changes: 0 additions & 14 deletions UsbDk/DeviceAccess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,20 +311,6 @@ USB_DK_DEVICE_SPEED UsbDkWdmUsbDeviceGetSpeed(PDEVICE_OBJECT DevObj, PDRIVER_OBJ
#endif //TARGET_OS_WIN_XP
}

bool UsbDkWdmUsbDeviceIsHub(PDEVICE_OBJECT PDO)
{
CWdmUsbDeviceAccess pdoAccess(PDO);

USB_DEVICE_DESCRIPTOR DevDescr;
if (!NT_SUCCESS(pdoAccess.GetDeviceDescriptor(DevDescr)))
{
TraceEvents(TRACE_LEVEL_ERROR, TRACE_DEVACCESS, "%!FUNC! Cannot query device descriptor");
return false;
}

return (DevDescr.bDeviceClass == USB_DEVICE_CLASS_HUB);
}

bool UsbDkGetWdmDeviceIdentity(const PDEVICE_OBJECT PDO,
CObjHolder<CRegText> *DeviceID,
CObjHolder<CRegText> *InstanceID)
Expand Down
1 change: 0 additions & 1 deletion UsbDk/DeviceAccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ bool UsbDkGetWdmDeviceIdentity(const PDEVICE_OBJECT PDO,
CObjHolder<CRegText> *DeviceID,
CObjHolder<CRegText> *InstanceID = nullptr);

bool UsbDkWdmUsbDeviceIsHub(PDEVICE_OBJECT PDO);
USB_DK_DEVICE_SPEED UsbDkWdmUsbDeviceGetSpeed(PDEVICE_OBJECT PDO, PDRIVER_OBJECT DriverObject);

template <typename TBuffer>
Expand Down

0 comments on commit fa23267

Please sign in to comment.