SDL: wayland: Remove duplicate code (56120)

From 56120a132dd8bb0019eef69761d1ca34ec6e2673 Mon Sep 17 00:00:00 2001
From: Frank Praznik <[EMAIL REDACTED]>
Date: Thu, 26 Jan 2023 15:17:38 -0500
Subject: [PATCH] wayland: Remove duplicate code

Remove some duplicate code that was left behind when rearranging things during the new high-DPI support work.
---
 src/video/wayland/SDL_waylandvideo.c | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/src/video/wayland/SDL_waylandvideo.c b/src/video/wayland/SDL_waylandvideo.c
index d354d2c82bfb..587b5f049757 100644
--- a/src/video/wayland/SDL_waylandvideo.c
+++ b/src/video/wayland/SDL_waylandvideo.c
@@ -650,23 +650,6 @@ static void display_handle_done(void *data,
                                                   ((float)driverdata->physical_height) / 25.4f);
     }
 
-    if (driverdata->index > -1) {
-        dpy = SDL_GetDisplay(driverdata->index);
-    } else {
-        dpy = &driverdata->placeholder;
-    }
-
-    SDL_AddDisplayMode(dpy, &desktop_mode);
-    SDL_SetCurrentDisplayMode(dpy, &desktop_mode);
-    SDL_SetDesktopDisplayMode(dpy, &desktop_mode);
-
-    /* Add emulated modes if wp_viewporter is supported and mode emulation is enabled. */
-    if (video->viewporter && mode_emulation_enabled) {
-        const SDL_bool rot_90 = ((driverdata->transform & WL_OUTPUT_TRANSFORM_90) != 0) ||
-                                (driverdata->width < driverdata->height);
-        AddEmulatedModes(dpy, rot_90);
-    }
-
     if (driverdata->index == -1) {
         /* First time getting display info, create the VideoDisplay */
         SDL_bool send_event = driverdata->videodata->initializing ? SDL_FALSE : SDL_TRUE;