Project

General

Profile

Feature #1264 » 0019-Clean-out-unused-AI_MOD_STATIC_THREADED-code.patch

Marko Lindqvist, 03/24/2025 01:21 AM

View differences:

server/aiiface.c
#include "aiiface.h"
#ifdef AI_MOD_STATIC_THREADED
bool fc_ai_threaded_setup(struct ai_type *ai);
#endif
#ifdef AI_MOD_STATIC_TEX
bool fc_ai_tex_setup(struct ai_type *ai);
#endif
......
void ai_init(void)
{
bool failure = FALSE;
#if !defined(AI_MODULES) || defined(AI_MOD_STATIC_CLASSIC) || defined(AI_MOD_STATIC_THREADED) || defined(AI_MOD_STATIC_TEX) || defined(AI_MOD_STATIC_STUB)
#if !defined(AI_MODULES) || defined(AI_MOD_STATIC_CLASSIC) || defined(AI_MOD_STATIC_TEX) || defined(AI_MOD_STATIC_STUB)
/* First !defined(AI_MODULES) case is for default ai support. */
struct ai_type *ai;
#endif
......
}
#endif /* AI_MOD_STATIC_CLASSIC */
#ifdef AI_MOD_STATIC_THREADED
ai = ai_type_alloc();
if (ai != NULL) {
init_ai(ai);
if (!fc_ai_threaded_setup(ai)) {
log_error(_("Failed to setup \"%s\" AI module"), "threaded");
ai_type_dealloc();
}
}
#endif /* AI_MOD_STATIC_THREADED */
#ifdef AI_MOD_STATIC_TEX
ai = ai_type_alloc();
if (ai != NULL) {
    (1-1/1)