Author: cazfi
Date: Sun Aug  2 21:47:41 2015
New Revision: 29299

URL: http://svn.gna.org/viewcvs/freeciv?rev=29299&view=rev
Log:
Removed outcommented and broken has_city_airport()

See patch #6158

Modified:
    branches/S2_6/client/gui-sdl/menu.c
    branches/S2_6/client/gui-sdl2/menu.c

Modified: branches/S2_6/client/gui-sdl/menu.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-sdl/menu.c?rev=29299&r1=29298&r2=29299&view=diff
==============================================================================
--- branches/S2_6/client/gui-sdl/menu.c (original)
+++ branches/S2_6/client/gui-sdl/menu.c Sun Aug  2 21:47:41 2015
@@ -256,15 +256,8 @@
 }
 
 /**************************************************************************
-  ...
+  Refresh order widgets.
 **************************************************************************/
-#if 0
-static bool has_city_airport(struct city *pCity)
-{
-  return (pCity && (get_city_bonus(pCity, EFT_AIR_VETERAN) > 0));
-}
-#endif
-
 static Uint16 redraw_order_widgets(void)
 {
   Uint16 count = 0;
@@ -1430,7 +1423,6 @@
        local_hide(ID_UNIT_ORDER_NUKE);
       }
 
-/*      if (pCity && has_city_airport(pCity) && pCity->airlift) {*/
       if (pCity && pCity->airlift) {      
        local_show(ID_UNIT_ORDER_AIRLIFT);
        hide(ID_UNIT_ORDER_GOTO_CITY);

Modified: branches/S2_6/client/gui-sdl2/menu.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-sdl2/menu.c?rev=29299&r1=29298&r2=29299&view=diff
==============================================================================
--- branches/S2_6/client/gui-sdl2/menu.c        (original)
+++ branches/S2_6/client/gui-sdl2/menu.c        Sun Aug  2 21:47:41 2015
@@ -257,16 +257,6 @@
 
   return -1;
 }
-
-#if 0
-/**************************************************************************
-   Does city has airport kind of building?
-**************************************************************************/
-static bool has_city_airport(struct city *pcity)
-{
-  return (pcity != NULL && (get_city_bonus(pcity, EFT_AIR_VETERAN) > 0));
-}
-#endif /* 0 */
 
 /**************************************************************************
    Refresh order widgets.


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

Reply via email to