summaryrefslogtreecommitdiff
path: root/src/newgrf_engine.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-04-24 15:51:29 +0000
committerpeter1138 <peter1138@openttd.org>2008-04-24 15:51:29 +0000
commitf8612ad5b9ef75a050ac7570fd5a881cbee75eae (patch)
treeae9fa8af4279889448dd1c160b4b3d5141231c9d /src/newgrf_engine.cpp
parent345f160978ada62ad59cb8f9d34c135a536ccbb1 (diff)
downloadopenttd-f8612ad5b9ef75a050ac7570fd5a881cbee75eae.tar.xz
(svn r12872) -Codechange: Remove obsolete unused engine list order function
Diffstat (limited to 'src/newgrf_engine.cpp')
-rw-r--r--src/newgrf_engine.cpp12
1 files changed, 0 insertions, 12 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.