Removed unused code in UIKit_AddDisplay()

This commit is contained in:
Sam Lantinga
2026-07-02 14:04:32 -07:00
parent 2919e1899f
commit 7dd7c7607f

View File

@@ -251,11 +251,7 @@ bool UIKit_AddDisplay(UIScreen *uiscreen, bool send_event)
#endif // !SDL_PLATFORM_TVOS
// Allocate the display data
#ifdef SDL_PLATFORM_VISIONOS
SDL_UIKitDisplayData *data = [[SDL_UIKitDisplayData alloc] init];
#else
SDL_UIKitDisplayData *data = [[SDL_UIKitDisplayData alloc] initWithScreen:uiscreen];
#endif
if (!data) {
UIKit_FreeDisplayModeData(&display.desktop_mode);
return SDL_OutOfMemory();