summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/newgrf_engine.cpp12
-rw-r--r--src/newgrf_engine.h1
2 files changed, 0 insertions, 13 deletions
diff --git a/src/newgrf_engine.cpp b/src/newgrf_engine.cpp
index e56c2dda2..d98cfcbc0 100644
--- a/src/newgrf_engine.cpp
+++ b/src/newgrf_engine.cpp
@@ -1100,18 +1100,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.
* @param engine ID of the engine.
diff --git a/src/newgrf_engine.h b/src/newgrf_engine.h
index 8d3a97806..9b7e64cdb 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);