Patchwork [2/2] ui/sdl: clean up dead code

login
register
mail settings
Submitter Serge Ziryukin
Date Aug. 19, 2010, 3:44 p.m.
Message ID <1282232653-32084-2-git-send-email-ftrvxmtrx@gmail.com>
Download mbox | patch
Permalink /patch/62206/
State New
Headers show

Comments

Serge Ziryukin - Aug. 19, 2010, 3:44 p.m.
Signed-off-by: Serge Ziryukin <ftrvxmtrx@gmail.com>
---
 ui/sdl.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

Patch

diff --git a/ui/sdl.c b/ui/sdl.c
index f599d42..a1458ce 100644
--- a/ui/sdl.c
+++ b/ui/sdl.c
@@ -87,12 +87,6 @@  static void sdl_update(DisplayState *ds, int x, int y, int w, int h)
 
 static void sdl_setdata(DisplayState *ds)
 {
-    SDL_Rect rec;
-    rec.x = 0;
-    rec.y = 0;
-    rec.w = real_screen->w;
-    rec.h = real_screen->h;
-
     if (guest_screen != NULL) SDL_FreeSurface(guest_screen);
 
     guest_screen = SDL_CreateRGBSurfaceFrom(ds_get_data(ds), ds_get_width(ds), ds_get_height(ds),