Cleanup: Remove some unused functions. (#11429)
These were picked up with cppcheck.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user