changeset 18667:97c292c24384 draft

(svn r23515) -Cleanup: Remove unused ScriptObject::GetNewTunnelEndtile() and relatives.
author frosch <frosch@openttd.org>
date Wed, 14 Dec 2011 20:13:18 +0000
parents 9fd7b682ac3f
children 9e7ffd4f9358
files src/script/api/script_object.cpp src/script/api/script_object.hpp src/script/script_storage.hpp
diffstat 3 files changed, 0 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- a/src/script/api/script_object.cpp
+++ b/src/script/api/script_object.cpp
@@ -140,7 +140,6 @@
 	/* Also store the results of various global variables */
 	SetNewVehicleID(_new_vehicle_id);
 	SetNewSignID(_new_sign_id);
-	SetNewTunnelEndtile(_build_tunnel_endtile);
 	SetNewGroupID(_new_group_id);
 }
 
@@ -169,16 +168,6 @@
 	return GetStorage()->new_sign_id;
 }
 
-/* static */ void ScriptObject::SetNewTunnelEndtile(TileIndex tile)
-{
-	GetStorage()->new_tunnel_endtile = tile;
-}
-
-/* static */ TileIndex ScriptObject::GetNewTunnelEndtile()
-{
-	return GetStorage()->new_tunnel_endtile;
-}
-
 /* static */ void ScriptObject::SetNewGroupID(GroupID group_id)
 {
 	GetStorage()->new_group_id = group_id;
--- a/src/script/api/script_object.hpp
+++ b/src/script/api/script_object.hpp
@@ -156,11 +156,6 @@
 	static SignID GetNewSignID();
 
 	/**
-	 * Get the latest stored new_tunnel_endtile.
-	 */
-	static TileIndex GetNewTunnelEndtile();
-
-	/**
 	 * Get the latest stored new_group_id.
 	 */
 	static GroupID GetNewGroupID();
@@ -229,12 +224,6 @@
 	static void SetNewSignID(SignID sign_id);
 
 	/**
-	 * Store a new_tunnel_endtile per company.
-	 * @param tile The new TileIndex.
-	 */
-	static void SetNewTunnelEndtile(TileIndex tile);
-
-	/**
 	 * Store a new_group_id per company.
 	 * @param group_id The new GroupID.
 	 */
--- a/src/script/script_storage.hpp
+++ b/src/script/script_storage.hpp
@@ -44,7 +44,6 @@
 
 	VehicleID new_vehicle_id;        ///< The ID of the new Vehicle.
 	SignID new_sign_id;              ///< The ID of the new Sign.
-	TileIndex new_tunnel_endtile;    ///< The TileIndex of the new Tunnel.
 	GroupID new_group_id;            ///< The ID of the new Group.
 
 	std::vector<int> callback_value; ///< The values which need to survive a callback.
@@ -67,7 +66,6 @@
 		last_command_res  (true),
 		new_vehicle_id    (0),
 		new_sign_id       (0),
-		new_tunnel_endtile(INVALID_TILE),
 		new_group_id      (0),
 		/* calback_value (can't be set) */
 		road_type         (INVALID_ROADTYPE),