Removed redundant ifdef

This commit is contained in:
Sam Lantinga
2026-03-12 08:29:47 -07:00
parent 18219d5b53
commit b80b466423

View File

@@ -642,16 +642,11 @@ static void IOS_AddJoystickDevice(GCController *controller)
device->pause_button_index = -1;
if (controller) {
#ifdef SDL_JOYSTICK_MFI
if (!IOS_AddMFIJoystickDevice(device, controller)) {
SDL_free(device->name);
SDL_free(device);
return;
}
#else
SDL_free(device);
return;
#endif // SDL_JOYSTICK_MFI
}
if (deviceList == NULL) {