Skip to contentSkip to conversation

WM8750: clean up dead code

PATCH New Serge Ziryukin 1 participant 2 messages Aug 19, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 WM8750: clean up dead code

---
 hw/wm8750.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
hw/wm8750.c +0 -5
index ce43c23..c9c6744 100644
@@ -171,7 +171,6 @@ static void wm8750_set_format(WM8750State *s)
     int i;
     struct audsettings in_fmt;
     struct audsettings out_fmt;
-    struct audsettings monoout_fmt;
 
     wm8750_out_flush(s);
 
@@ -212,10 +211,6 @@ static void wm8750_set_format(WM8750State *s)
     out_fmt.nchannels = 2;
     out_fmt.freq = s->dac_hz;
     out_fmt.fmt = AUD_FMT_S16;
-    monoout_fmt.endianness = 0;
-    monoout_fmt.nchannels = 1;
-    monoout_fmt.freq = s->rate->dac_hz;
-    monoout_fmt.fmt = AUD_FMT_S16;
 
     s->dac_voice[0] = AUD_open_out(&s->card, s->dac_voice[0],
                     CODEC ".speaker", s, wm8750_audio_out_cb, &out_fmt);
Signature · 1 line
1.7.2.1
#1 lore raw

PATCH 2/2 ui/sdl: clean up dead code

---
 ui/sdl.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
ui/sdl.c +0 -6
index f599d42..a1458ce 100644
@@ -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),
Signature · 1 line
1.7.2.1