Author: cazfi
Date: Wed Feb  4 04:03:05 2015
New Revision: 27958

URL: http://svn.gna.org/viewcvs/freeciv?rev=27958&view=rev
Log:
Removed unused change_shell field from gtk-clients' citydlg.

See patch #5775

Modified:
    trunk/client/gui-gtk-2.0/citydlg.c
    trunk/client/gui-gtk-3.0/citydlg.c

Modified: trunk/client/gui-gtk-2.0/citydlg.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-gtk-2.0/citydlg.c?rev=27958&r1=27957&r2=27958&view=diff
==============================================================================
--- trunk/client/gui-gtk-2.0/citydlg.c  (original)
+++ trunk/client/gui-gtk-2.0/citydlg.c  Wed Feb  4 04:03:05 2015
@@ -181,7 +181,6 @@
   } misc;
 
   GtkWidget *buy_shell, *sell_shell;
-  GtkWidget *change_shell;
   GtkTreeSelection *change_selection;
   GtkWidget *rename_shell, *rename_input;
 
@@ -1279,7 +1278,6 @@
 
   pdialog = fc_malloc(sizeof(struct city_dialog));
   pdialog->pcity = pcity;
-  pdialog->change_shell = NULL;
   pdialog->buy_shell = NULL;
   pdialog->sell_shell = NULL;
   pdialog->rename_shell = NULL;
@@ -2910,12 +2908,15 @@
   unit_node_vector_free(&pdialog->overview.supported_units);
   unit_node_vector_free(&pdialog->overview.present_units);
 
-  if (pdialog->buy_shell)
+  if (pdialog->buy_shell) {
     gtk_widget_destroy(pdialog->buy_shell);
-  if (pdialog->sell_shell)
+  }
+  if (pdialog->sell_shell) {
     gtk_widget_destroy(pdialog->sell_shell);
-  if (pdialog->rename_shell)
+  }
+  if (pdialog->rename_shell) {
     gtk_widget_destroy(pdialog->rename_shell);
+  }
 
   g_object_unref(pdialog->map_canvas_store);
   if (pdialog->map_pixbuf_unscaled) {

Modified: trunk/client/gui-gtk-3.0/citydlg.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-gtk-3.0/citydlg.c?rev=27958&r1=27957&r2=27958&view=diff
==============================================================================
--- trunk/client/gui-gtk-3.0/citydlg.c  (original)
+++ trunk/client/gui-gtk-3.0/citydlg.c  Wed Feb  4 04:03:05 2015
@@ -182,7 +182,6 @@
   } misc;
 
   GtkWidget *buy_shell, *sell_shell;
-  GtkWidget *change_shell;
   GtkTreeSelection *change_selection;
   GtkWidget *rename_shell, *rename_input;
 
@@ -1344,7 +1343,6 @@
 
   pdialog = fc_malloc(sizeof(struct city_dialog));
   pdialog->pcity = pcity;
-  pdialog->change_shell = NULL;
   pdialog->buy_shell = NULL;
   pdialog->sell_shell = NULL;
   pdialog->rename_shell = NULL;
@@ -3081,12 +3079,15 @@
   unit_node_vector_free(&pdialog->overview.supported_units);
   unit_node_vector_free(&pdialog->overview.present_units);
 
-  if (pdialog->buy_shell)
+  if (pdialog->buy_shell) {
     gtk_widget_destroy(pdialog->buy_shell);
-  if (pdialog->sell_shell)
+  }
+  if (pdialog->sell_shell) {
     gtk_widget_destroy(pdialog->sell_shell);
-  if (pdialog->rename_shell)
+  }
+  if (pdialog->rename_shell) {
     gtk_widget_destroy(pdialog->rename_shell);
+  }
 
   cairo_surface_destroy(pdialog->map_canvas_store_unscaled);
 


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to