Commit 3a5abee512112d70c7ec12937af6dd9ee8d84f63

Sam Lantinga 2023-06-14T15:16:21

Removed unused function (cherry picked from commit 73927b09480fd5d664f7077a70a8b6df318cdd2d)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/src/joystick/hidapi/SDL_hidapijoystick.c b/src/joystick/hidapi/SDL_hidapijoystick.c
index a552d72..c0e5cd5 100644
--- a/src/joystick/hidapi/SDL_hidapijoystick.c
+++ b/src/joystick/hidapi/SDL_hidapijoystick.c
@@ -657,12 +657,6 @@ void HIDAPI_SetDeviceName(SDL_HIDAPI_Device *device, const char *name)
     }
 }
 
-void HIDAPI_SetDeviceVendor(SDL_HIDAPI_Device *device, Uint16 vendor_id)
-{
-    /* Don't set the device vendor ID directly, or we'll constantly re-enumerate this device */
-    SDL_SetJoystickGUIDVendor(&device->guid, vendor_id);
-}
-
 void HIDAPI_SetDeviceProduct(SDL_HIDAPI_Device *device, Uint16 vendor_id, Uint16 product_id)
 {
     /* Don't set the device product ID directly, or we'll constantly re-enumerate this device */