Skip to content

Commit

Permalink
Remove useless function handle_city() in governor.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoureaux committed Jun 13, 2024
1 parent a3393e7 commit cc0ca56
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions client/governor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -160,7 +159,7 @@ void governor::run()
continue;
}
if (pcity) {
city_changed(pcity->id);
gimb->handle_city(pcity);;
}
}
scity_changed.clear();
Expand Down Expand Up @@ -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
*/
Expand Down

0 comments on commit cc0ca56

Please sign in to comment.