From 574feec65034c2d31500d2503c8517e1cd4f1396 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 19 Sep 2021 08:23:23 +0300 Subject: [PATCH 34/34] 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 89483ed83b..30accc3eb5 100644 --- a/ai/default/daimilitary.c +++ b/ai/default/daimilitary.c @@ -129,20 +129,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 8615951fd2..0fc10b76ea 100644 --- a/ai/default/daimilitary.h +++ b/ai/default/daimilitary.h @@ -33,8 +33,6 @@ typedef struct unit_list *(player_unit_list_getter)(struct player *pplayer); 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