Author: cazfi
Date: Sun Aug  2 21:47:33 2015
New Revision: 29298

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

See patch #6158

Modified:
    trunk/client/gui-sdl/menu.c
    trunk/client/gui-sdl2/menu.c

Modified: trunk/client/gui-sdl/menu.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-sdl/menu.c?rev=29298&r1=29297&r2=29298&view=diff
==============================================================================
--- trunk/client/gui-sdl/menu.c (original)
+++ trunk/client/gui-sdl/menu.c Sun Aug  2 21:47:33 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: trunk/client/gui-sdl2/menu.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-sdl2/menu.c?rev=29298&r1=29297&r2=29298&view=diff
==============================================================================
--- trunk/client/gui-sdl2/menu.c        (original)
+++ trunk/client/gui-sdl2/menu.c        Sun Aug  2 21:47:33 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