From 387c86e7f3d99dcfd89d40f33d2681e5fd16ae4e Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 19 Sep 2021 08:26:36 +0300 Subject: [PATCH 12/12] AI: Drop unused military_advisor_choose_tech() It was never really implemented, and would not suit current design. See osdn #42227 Signed-off-by: Marko Lindqvist --- ai/default/daimilitary.c | 14 -------------- ai/default/daimilitary.h | 2 -- 2 files changed, 16 deletions(-) diff --git a/ai/default/daimilitary.c b/ai/default/daimilitary.c index 93ded82560..d83a85bd88 100644 --- a/ai/default/daimilitary.c +++ b/ai/default/daimilitary.c @@ -125,20 +125,6 @@ struct unit_type *dai_choose_defender_versus(struct city *pcity, return bestunit; } -/********************************************************************** -This function should assign a value to choice and want, where want is a value -between 1 and 100. - -If choice is A_UNSET, this advisor doesn't want any particular tech -researched at the moment. -***********************************************************************/ -void military_advisor_choose_tech(struct player *pplayer, - struct adv_choice *choice) -{ - /* This function hasn't been implemented yet. */ - adv_init_choice(choice); -} - /************************************************************************** Choose best attacker based on movement type. It chooses based on unit desirability without regard to cost, unless costs are equal. This is diff --git a/ai/default/daimilitary.h b/ai/default/daimilitary.h index b6ef25ad43..19afae1faa 100644 --- a/ai/default/daimilitary.h +++ b/ai/default/daimilitary.h @@ -26,8 +26,6 @@ struct unit_type *dai_choose_defender_versus(struct city *pcity, struct unit *attacker); -void military_advisor_choose_tech(struct player *pplayer, - struct adv_choice *choice); struct adv_choice *military_advisor_choose_build(struct ai_type *ait, struct player *pplayer, struct city *pcity); -- 2.33.0