Complete.Org: Mailing Lists: Archives: freeciv-ai: December 2002:
[freeciv-ai] Removing ifdef'ed obsolete code
Home

[freeciv-ai] Removing ifdef'ed obsolete code

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Removing ifdef'ed obsolete code
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Wed, 18 Dec 2002 16:13:30 +0000 (GMT)

Never used. Don't really know what it was supposed to do. - Per

Index: ai/aicity.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/ai/aicity.c,v
retrieving revision 1.130
diff -u -r1.130 aicity.c
--- ai/aicity.c 17 Dec 2002 16:04:44 -0000      1.130
+++ ai/aicity.c 18 Dec 2002 16:12:38 -0000
@@ -250,20 +250,6 @@

/**************************************************************************
 ...

**************************************************************************/
-#ifdef GRAVEDANGERWORKS
-static int ai_city_defender_value(struct city *pcity, Unit_Type_id
a_type,
-                                  Unit_Type_id d_type)
-{
-  return unit_vulnerability_virtual2(a_type, d_type, pcity->x,
-                                    pcity->y, FALSE,
-                                    do_make_unit_veteran(pcity, d_type),
-                                    FALSE, 0);
-}
-#endif
-
-/**************************************************************************
-...
-**************************************************************************/
 static void try_to_sell_stuff(struct player *pplayer, struct city *pcity)
 {
   impr_type_iterate(id) {




[Prev in Thread] Current Thread [Next in Thread]
  • [freeciv-ai] Removing ifdef'ed obsolete code, Per I. Mathisen <=