(svn r12872) -Codechange: Remove obsolete unused engine list order function
authorpeter1138
Thu, 24 Apr 2008 15:51:29 +0000
changeset 10331 591ed295da2b
parent 10329 69e49f381f7f
child 10332 66549710afdb
(svn r12872) -Codechange: Remove obsolete unused engine list order function
src/newgrf_engine.cpp
src/newgrf_engine.h
--- a/src/newgrf_engine.cpp	Thu Apr 24 13:05:51 2008 +0000
+++ b/src/newgrf_engine.cpp	Thu Apr 24 15:51:29 2008 +0000
@@ -1100,18 +1100,6 @@
 }
 
 /**
- * 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.
--- a/src/newgrf_engine.h	Thu Apr 24 13:05:51 2008 +0000
+++ b/src/newgrf_engine.h	Thu Apr 24 15:51:29 2008 +0000
@@ -57,7 +57,6 @@
 void UnloadCustomEngineSprites();
 
 void ResetEngineListOrder();
-EngineID GetRailVehAtPosition(EngineID pos);
 uint16 ListPositionOfEngine(EngineID engine);
 void AlterRailVehListOrder(EngineID engine, EngineID target);