(svn r14360) -Cleanup (r12652): remove unused handler for the 'Tranfser' button
authorsmatz
Fri, 19 Sep 2008 16:34:24 +0000
changeset 10168 dc4a85353003
parent 10167 b4bef78a1e24
child 10169 66186e282c95
(svn r14360) -Cleanup (r12652): remove unused handler for the 'Tranfser' button
src/order_gui.cpp
--- a/src/order_gui.cpp	Thu Sep 18 15:32:20 2008 +0000
+++ b/src/order_gui.cpp	Fri Sep 19 16:34:24 2008 +0000
@@ -539,21 +539,6 @@
 	}
 
 	/**
-	 * Handle the click on the transfer button.
-	 *
-	 * @param w current window
-	 */
-	static void OrderClick_Transfer(OrdersWindow *w, int i)
-	{
-		VehicleOrderID sel_ord = w->OrderGetSel();
-		const Order *order = GetVehicleOrder(w->vehicle, sel_ord);
-
-		if (order == NULL) return;
-
-		DoCommandP(w->vehicle->tile, w->vehicle->index + (sel_ord << 16), MOF_UNLOAD | ((order->GetUnloadType() & ~OUFB_NO_UNLOAD) ^ OUFB_TRANSFER) << 4, NULL, CMD_MODIFY_ORDER | CMD_MSG(STR_8835_CAN_T_MODIFY_THIS_ORDER));
-	}
-
-	/**
 	 * Handle the click on the skip button.
 	 * If ctrl is pressed skip to selected order.
 	 *  Else skip to current order + 1
@@ -969,7 +954,6 @@
 			{'H', OrderClick_Nonstop},
 			{'J', OrderClick_FullLoad},
 			{'K', OrderClick_Unload},
-			//{'?', OrderClick_Transfer},
 			//('?', OrderClick_Service},
 		};