Patchwork [RfC,06/12] sdl: drop dead code

login
register
mail settings
Submitter Gerd Hoffmann
Date March 1, 2013, 9 a.m.
Message ID <1362128443-15687-7-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/224253/
State New
Headers show

Comments

Gerd Hoffmann - March 1, 2013, 9 a.m.
DisplayAllocator removal made this a nop.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 ui/sdl.c |    5 -----
 1 file changed, 5 deletions(-)

Patch

diff --git a/ui/sdl.c b/ui/sdl.c
index 5baffa0..fc4dc1b 100644
--- a/ui/sdl.c
+++ b/ui/sdl.c
@@ -458,11 +458,6 @@  static void sdl_scale(DisplayState *ds, int width, int height)
     }
     do_sdl_resize(width, height, bpp);
     scaling_active = 1;
-    if (!is_buffer_shared(ds->surface)) {
-        ds->surface = qemu_resize_displaysurface(ds, ds_get_width(ds),
-                                                 ds_get_height(ds));
-        dpy_gfx_resize(ds);
-    }
 }
 
 static void toggle_full_screen(DisplayState *ds)