From 2287f84dd5376e61a8f66da85be1eb75145bdc0f Mon Sep 17 00:00:00 2001 From: Louis Moureaux Date: Thu, 13 Jun 2024 03:49:24 +0200 Subject: [PATCH] Remove useless function handle_city() in governor.cpp --- client/governor.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/client/governor.cpp b/client/governor.cpp index 328d9cd754..78211b0e74 100644 --- a/client/governor.cpp +++ b/client/governor.cpp @@ -52,7 +52,6 @@ static struct preset_list *preset_list = nullptr; -static void city_changed(int city_id); static void city_remove(int city_id) { attr_city_set(ATTR_CITY_CMA_PARAMETER, city_id, 0, nullptr); @@ -160,7 +159,7 @@ void governor::run() continue; } if (pcity) { - city_changed(pcity->id); + gimb->handle_city(pcity);; } } scity_changed.clear(); @@ -630,15 +629,6 @@ void cma_yoloswag::handle_city(struct city *pcity) log_handle_city2("END handle city=(%d)", city_id); } -static void city_changed(int city_id) -{ - struct city *pcity = game_city_by_number(city_id); - - if (pcity) { - gimb->handle_city(pcity); - } -} - /** Put city under governor control */