Rémi Bernon : winebus.sys: Remove the now useless get_unix_device.

Alexandre Julliard julliard at winehq.org
Wed Sep 15 16:21:32 CDT 2021


Module: wine
Branch: master
Commit: 5f8ebe7a608855b0afd45dc725934addbbacfda0
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5f8ebe7a608855b0afd45dc725934addbbacfda0

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Wed Sep 15 09:04:45 2021 +0200

winebus.sys: Remove the now useless get_unix_device.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winebus.sys/bus.h  | 2 --
 dlls/winebus.sys/main.c | 6 ------
 2 files changed, 8 deletions(-)

diff --git a/dlls/winebus.sys/bus.h b/dlls/winebus.sys/bus.h
index 67215019dfc..df53508d2c0 100644
--- a/dlls/winebus.sys/bus.h
+++ b/dlls/winebus.sys/bus.h
@@ -27,8 +27,6 @@
 
 #include "unixlib.h"
 
-struct unix_device *get_unix_device(DEVICE_OBJECT *device) DECLSPEC_HIDDEN;
-
 /* General Bus Functions */
 BOOL is_xbox_gamepad(WORD vid, WORD pid) DECLSPEC_HIDDEN;
 
diff --git a/dlls/winebus.sys/main.c b/dlls/winebus.sys/main.c
index ce548980640..3e63a84adcc 100644
--- a/dlls/winebus.sys/main.c
+++ b/dlls/winebus.sys/main.c
@@ -217,12 +217,6 @@ static void unix_device_set_feature_report(DEVICE_OBJECT *device, HID_XFER_PACKE
     winebus_call(device_set_feature_report, &params);
 }
 
-struct unix_device *get_unix_device(DEVICE_OBJECT *device)
-{
-    struct device_extension *ext = (struct device_extension *)device->DeviceExtension;
-    return ext->unix_device;
-}
-
 static DWORD get_device_index(struct device_desc *desc)
 {
     struct device_extension *ext;




More information about the wine-cvs mailing list