Author: cazfi
Date: Wed Jan 27 05:15:58 2016
New Revision: 31623

URL: http://svn.gna.org/viewcvs/freeciv?rev=31623&view=rev
Log:
Removed obsolete give_random_free_tech()

See patch #6535

Modified:
    trunk/server/techtools.c
    trunk/server/techtools.h

Modified: trunk/server/techtools.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/techtools.c?rev=31623&r1=31622&r2=31623&view=diff
==============================================================================
--- trunk/server/techtools.c    (original)
+++ trunk/server/techtools.c    Wed Jan 27 05:15:58 2016
@@ -1271,20 +1271,6 @@
 }
 
 /****************************************************************************
-  Gives a random tech, which he hasn't researched yet. Applies freecost.
-  Returns the tech.
-****************************************************************************/
-Tech_type_id give_random_free_tech(struct research *presearch)
-{
-  Tech_type_id tech;
-
-  tech = pick_random_tech(presearch);
-  research_apply_penalty(presearch, tech, game.server.freecost);
-  found_new_tech(presearch, tech, FALSE, TRUE);
-  return tech;
-}
-
-/****************************************************************************
   Gives an immediate free tech. Applies freecost. Returns the tech.
 ****************************************************************************/
 Tech_type_id give_immediate_free_tech(struct research *presearch)

Modified: trunk/server/techtools.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/techtools.h?rev=31623&r1=31622&r2=31623&view=diff
==============================================================================
--- trunk/server/techtools.h    (original)
+++ trunk/server/techtools.h    Wed Jan 27 05:15:58 2016
@@ -38,7 +38,6 @@
 Tech_type_id steal_a_tech(struct player *pplayer, struct player *target,
                 Tech_type_id preferred);
 
-Tech_type_id give_random_free_tech(struct research *presearch);
 Tech_type_id give_immediate_free_tech(struct research *presearch);
 void give_initial_techs(struct research *presearch, int num_random_techs);
 


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

Reply via email to