Cleanup: Remove some unused functions. (#11429)

These were picked up with cppcheck.
This commit is contained in:
Peter Nelson
2023-11-03 21:21:00 +00:00
committed by GitHub
parent 4c58df75fd
commit 7d4a91ef9e
15 changed files with 0 additions and 157 deletions

View File

@@ -714,19 +714,6 @@ CommandCost CmdSetGroupFlag(DoCommandFlag flags, GroupID group_id, GroupFlags fl
return CommandCost();
}
/**
* Decrease the num_vehicle variable before delete an front engine from a group
* @note Called in CmdSellRailWagon and DeleteLasWagon,
* @param v FrontEngine of the train we want to remove.
*/
void RemoveVehicleFromGroup(const Vehicle *v)
{
if (!v->IsPrimaryVehicle()) return;
if (!IsDefaultGroupID(v->group_id)) GroupStatistics::CountVehicle(v, -1);
}
/**
* Affect the groupID of a train to new_g.
* @note called in CmdAddVehicleGroup and CmdMoveRailVehicle