From fa17bc6d073478c940daeb7f045cc1079faffd39 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 18 Jan 2023 19:13:17 +0200 Subject: [PATCH 20/20] sdl2: Fix unused 'scroll' assignment from remove_clause_widget_from_list() See osdn #46545 Signed-off-by: Marko Lindqvist --- client/gui-sdl2/diplodlg.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/client/gui-sdl2/diplodlg.c b/client/gui-sdl2/diplodlg.c index 345ecd8ffb..10c1cda1ff 100644 --- a/client/gui-sdl2/diplodlg.c +++ b/client/gui-sdl2/diplodlg.c @@ -1134,10 +1134,10 @@ static void remove_clause_widget_from_list(int counterpart, int giver, { struct widget *pBuf; SDL_Rect src = {0, 0, 0, 0}; - bool scroll = TRUE; + bool scroll; struct diplomacy_dialog *pdialog = get_diplomacy_dialog(counterpart); - /* find widget with clause */ + /* Find widget with clause */ pBuf = pdialog->pdialog->pEndActiveWidgetList->next; do { @@ -1165,14 +1165,12 @@ static void remove_clause_widget_from_list(int counterpart, int giver, pBuf = pBuf->prev; widget_undraw(pBuf); pBuf->size.w += len; - /* we need to save a new background because the width has changed */ + /* We need to save a new background because the width has changed */ FREESURFACE(pBuf->gfx); } while (pBuf != pdialog->pdialog->pBeginActiveWidgetList); - - scroll = FALSE; } - /* update state icons */ + /* Update state icons */ pBuf = pdialog->pdialog->pEndWidgetList->prev; if (pBuf->private_data.cbox->state) { -- 2.39.0