diff --git a/src/newgrf_engine.cpp b/src/newgrf_engine.cpp index e56c2dda23..d98cfcbc00 100644 --- a/src/newgrf_engine.cpp +++ b/src/newgrf_engine.cpp @@ -1099,18 +1099,6 @@ void ResetEngineListOrder() } } -/** - * Get the EngineID at position pos. - * Used when drawing a(n unsorted) list of engines. - * @param pos List position/ - * @return The EngineID at the requested position. - */ -EngineID GetRailVehAtPosition(EngineID pos) -{ - if (pos < NUM_TRAIN_ENGINES) return _engine_list_order[pos]; - return pos; -} - /** * Get the list position of an engine. * Used when sorting a list of engines. diff --git a/src/newgrf_engine.h b/src/newgrf_engine.h index 8d3a978066..9b7e64cdbf 100644 --- a/src/newgrf_engine.h +++ b/src/newgrf_engine.h @@ -57,7 +57,6 @@ void UnloadWagonOverrides(); void UnloadCustomEngineSprites(); void ResetEngineListOrder(); -EngineID GetRailVehAtPosition(EngineID pos); uint16 ListPositionOfEngine(EngineID engine); void AlterRailVehListOrder(EngineID engine, EngineID target);