summaryrefslogtreecommitdiff
path: root/src/vehicle_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r--src/vehicle_gui.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index 63ca667c4..14b9ae426 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -459,20 +459,6 @@ void ShowVehicleRefitWindow(const Vehicle *v, VehicleOrderID order, Window *pare
w->parent = parent;
}
-/** Display additional text from NewGRF in the purchase information window */
-uint ShowAdditionalText(int left, int right, int y, EngineID engine)
-{
- uint16 callback = GetVehicleCallback(CBID_VEHICLE_ADDITIONAL_TEXT, 0, 0, engine, NULL);
- if (callback == CALLBACK_FAILED) return y;
-
- /* STR_BLACK_STRING is used to start the string with {BLACK} */
- SetDParam(0, GetGRFStringID(GetEngineGRFID(engine), 0xD000 + callback));
- PrepareTextRefStackUsage(0);
- uint result = DrawStringMultiLine(left, right, y, INT32_MAX, STR_BLACK_STRING);
- StopTextRefStackUsage();
- return result;
-}
-
/** Display list of cargo types of the engine, for the purchase information window */
uint ShowRefitOptionsList(int left, int right, int y, EngineID engine)
{