TBTR: Remove unused function: TemplateReplacement::GetTemplateVehicle
(cherry picked from commit 8afb21cf9c)
This commit is contained in:
@@ -205,17 +205,6 @@ struct TemplateReplacement : TemplateReplacementPool::PoolItem<&_template_replac
|
|||||||
inline void SetTemplate(TemplateID tid) { this->sel_template = tid; }
|
inline void SetTemplate(TemplateID tid) { this->sel_template = tid; }
|
||||||
|
|
||||||
inline TemplateID GetTemplateVehicleID() { return sel_template; }
|
inline TemplateID GetTemplateVehicleID() { return sel_template; }
|
||||||
|
|
||||||
inline const TemplateVehicle* GetTemplateVehicle()
|
|
||||||
{
|
|
||||||
const TemplateVehicle *tv;
|
|
||||||
FOR_ALL_TEMPLATES(tv) {
|
|
||||||
if (tv->index == this->sel_template) {
|
|
||||||
return tv;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
TemplateReplacement* GetTemplateReplacementByGroupID(GroupID);
|
TemplateReplacement* GetTemplateReplacementByGroupID(GroupID);
|
||||||
|
|||||||
Reference in New Issue
Block a user