Navigation Menu

Skip to content

Commit

Permalink
iOS: Remove code trying to support compilation on the iOS 7 SDK, the …
Browse files Browse the repository at this point in the history
…deployment target has been set to iOS 8 for years and there's other unconditionally compiled code that depends on newer SDKs so that code is useless.
  • Loading branch information
slime73 committed Apr 17, 2019
1 parent 9d7b261 commit 90b0888
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
4 changes: 0 additions & 4 deletions src/video/uikit/SDL_uikitmessagebox.m
Expand Up @@ -55,7 +55,6 @@
static BOOL
UIKit_ShowMessageBoxAlertController(const SDL_MessageBoxData *messageboxdata, int *buttonid)
{
#ifdef __IPHONE_8_0
int i;
int __block clickedindex = messageboxdata->numbuttons;
const SDL_MessageBoxButtonData *buttons = messageboxdata->buttons;
Expand Down Expand Up @@ -125,9 +124,6 @@

*buttonid = messageboxdata->buttons[clickedindex].buttonid;
return YES;
#else
return NO;
#endif /* __IPHONE_8_0 */
}

/* UIAlertView is deprecated in iOS 8+ in favor of UIAlertController. */
Expand Down
5 changes: 1 addition & 4 deletions src/video/uikit/SDL_uikitmetalview.m
Expand Up @@ -90,12 +90,9 @@ - (void)updateDrawableSize
* dimensions of the screen rather than the dimensions in points
* yielding high resolution on retine displays.
*/
#ifdef __IPHONE_8_0
if ([data.uiwindow.screen respondsToSelector:@selector(nativeScale)]) {
scale = data.uiwindow.screen.nativeScale;
} else
#endif
{
} else {
scale = data.uiwindow.screen.scale;
}
}
Expand Down
5 changes: 1 addition & 4 deletions src/video/uikit/SDL_uikitopengles.m
Expand Up @@ -168,12 +168,9 @@ int UIKit_GL_SwapWindow(_THIS, SDL_Window * window)
/* Set the scale to the natural scale factor of the screen - the
* backing dimensions of the OpenGL view will match the pixel
* dimensions of the screen rather than the dimensions in points. */
#ifdef __IPHONE_8_0
if ([data.uiwindow.screen respondsToSelector:@selector(nativeScale)]) {
scale = data.uiwindow.screen.nativeScale;
} else
#endif
{
} else {
scale = data.uiwindow.screen.scale;
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/video/uikit/SDL_uikitwindow.m
Expand Up @@ -77,7 +77,8 @@ - (void)layoutSubviews
@end


static int SetupWindowData(_THIS, SDL_Window *window, UIWindow *uiwindow, SDL_bool created)
static int
SetupWindowData(_THIS, SDL_Window *window, UIWindow *uiwindow, SDL_bool created)
{
SDL_VideoDisplay *display = SDL_GetDisplayForWindow(window);
SDL_DisplayData *displaydata = (__bridge SDL_DisplayData *) display->driverdata;
Expand Down

0 comments on commit 90b0888

Please sign in to comment.