Pārlūkot izejas kodu

Remove unneeded property type check

Sam Lantinga 1 gadu atpakaļ
vecāks
revīzija
4644ac99fa
1 mainītis faili ar 0 papildinājumiem un 3 dzēšanām
  1. 0 3
      src/hidapi/mac/hid.c

+ 0 - 3
src/hidapi/mac/hid.c

@@ -383,9 +383,6 @@ static int get_string_property(IOHIDDeviceRef device, CFStringRef prop, wchar_t
 	if (!len)
 		return 0;
 
-	if (CFGetTypeID(prop) != CFStringGetTypeID())
-		return 0;
-
 	str = (CFStringRef) IOHIDDeviceGetProperty(device, prop);
 
 	buf[0] = 0;