Skip to content

Commit ae15b65

Browse files
mrpippysignal11
authored andcommitted
Mac: Disable unused get_location_id()
Disable get_location_id(). It's not used in active code since make_path() was removed.
1 parent 474145e commit ae15b65

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mac/hid.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,6 @@ static unsigned short get_product_id(IOHIDDeviceRef device)
214214
return get_int_property(device, CFSTR(kIOHIDProductIDKey));
215215
}
216216

217-
static int32_t get_location_id(IOHIDDeviceRef device)
218-
{
219-
return get_int_property(device, CFSTR(kIOHIDLocationIDKey));
220-
}
221-
222217
static int32_t get_max_report_length(IOHIDDeviceRef device)
223218
{
224219
return get_int_property(device, CFSTR(kIOHIDMaxInputReportSizeKey));
@@ -1047,6 +1042,11 @@ HID_API_EXPORT const wchar_t * HID_API_CALL hid_error(hid_device *dev)
10471042

10481043

10491044
#if 0
1045+
static int32_t get_location_id(IOHIDDeviceRef device)
1046+
{
1047+
return get_int_property(device, CFSTR(kIOHIDLocationIDKey));
1048+
}
1049+
10501050
static int32_t get_usage(IOHIDDeviceRef device)
10511051
{
10521052
int32_t res;

0 commit comments

Comments
 (0)