From ae15b65ed9d8e4446034a45b226ccd95add050fc Mon Sep 17 00:00:00 2001 From: Brendan Shanks Date: Mon, 24 Nov 2014 13:03:41 -0800 Subject: [PATCH] Mac: Disable unused get_location_id() Disable get_location_id(). It's not used in active code since make_path() was removed. --- mac/hid.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mac/hid.c b/mac/hid.c index 85e154c..ea0672e 100644 --- a/mac/hid.c +++ b/mac/hid.c @@ -214,11 +214,6 @@ static unsigned short get_product_id(IOHIDDeviceRef device) return get_int_property(device, CFSTR(kIOHIDProductIDKey)); } -static int32_t get_location_id(IOHIDDeviceRef device) -{ - return get_int_property(device, CFSTR(kIOHIDLocationIDKey)); -} - static int32_t get_max_report_length(IOHIDDeviceRef device) { 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) #if 0 +static int32_t get_location_id(IOHIDDeviceRef device) +{ + return get_int_property(device, CFSTR(kIOHIDLocationIDKey)); +} + static int32_t get_usage(IOHIDDeviceRef device) { int32_t res;