summaryrefslogtreecommitdiff
path: root/src
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
parent345f160978ada62ad59cb8f9d34c135a536ccbb1 (diff)
downloadopenttd-f8612ad5b9ef75a050ac7570fd5a881cbee75eae.tar.xz
(svn r12872) -Codechange: Remove obsolete unused engine list order function
Diffstat (limited to 'src')
-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);