From fd0b753753dbf142542ff25dd3659b6ec05c59c6 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 10 Dec 2022 10:54:18 +0200 Subject: [PATCH 45/45] gtk4: Fix citydlg right_..._unit_release() dead 'pdialog' store Remove also 'pcity' consequently made obsolete. See osdn #46201 Signed-off-by: Marko Lindqvist --- client/gui-gtk-4.0/citydlg.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/client/gui-gtk-4.0/citydlg.c b/client/gui-gtk-4.0/citydlg.c index 4931966329..13b3124674 100644 --- a/client/gui-gtk-4.0/citydlg.c +++ b/client/gui-gtk-4.0/citydlg.c @@ -2721,14 +2721,10 @@ static gboolean middle_present_unit_release(GtkGestureClick *gesture, int n_pres static gboolean right_present_unit_release(GtkGestureClick *gesture, int n_press, double x, double y, gpointer data) { - struct city_dialog *pdialog; - struct city *pcity; struct unit *punit = player_unit_by_number(client_player(), (size_t) data); if (NULL != punit - && NULL != (pcity = tile_city(unit_tile(punit))) - && NULL != (pdialog = get_city_dialog(pcity)) && can_client_issue_orders()) { unit_focus_set(punit); } @@ -2764,14 +2760,10 @@ static gboolean middle_supported_unit_release(GtkGestureClick *gesture, int n_pr static gboolean right_supported_unit_release(GtkGestureClick *gesture, int n_press, double x, double y, gpointer data) { - struct city_dialog *pdialog; - struct city *pcity; struct unit *punit = player_unit_by_number(client_player(), (size_t) data); if (NULL != punit - && NULL != (pcity = game_city_by_number(punit->homecity)) - && NULL != (pdialog = get_city_dialog(pcity)) && can_client_issue_orders()) { unit_focus_set(punit); } -- 2.35.1