summaryrefslogtreecommitdiff
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
commit33f85f80d04954340c5dbbc434db466b9728dc12 (patch)
treeae9fa8af4279889448dd1c160b4b3d5141231c9d
parent0a83a43075d7fefb7376ad4278080248fc496273 (diff)
downloadopenttd-33f85f80d04954340c5dbbc434db466b9728dc12.tar.xz
(svn r12872) -Codechange: Remove obsolete unused engine list order function
-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);