diff --git a/src/tbtr_template_vehicle.h b/src/tbtr_template_vehicle.h index 5003c38390..b7c35bcb47 100644 --- a/src/tbtr_template_vehicle.h +++ b/src/tbtr_template_vehicle.h @@ -203,17 +203,6 @@ struct TemplateReplacement : TemplateReplacementPool::PoolItem<&_template_replac inline void SetTemplate(TemplateID tid) { this->sel_template = tid; } 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 nullptr; - } }; TemplateReplacement* GetTemplateReplacementByGroupID(GroupID);