mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-11-18 16:21:12 +00:00
Remove unneeded property type check
This commit is contained in:
@@ -383,9 +383,6 @@ static int get_string_property(IOHIDDeviceRef device, CFStringRef prop, wchar_t
|
|||||||
if (!len)
|
if (!len)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (CFGetTypeID(prop) != CFStringGetTypeID())
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
str = (CFStringRef) IOHIDDeviceGetProperty(device, prop);
|
str = (CFStringRef) IOHIDDeviceGetProperty(device, prop);
|
||||||
|
|
||||||
buf[0] = 0;
|
buf[0] = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user