diff options
author | rubidium <rubidium@openttd.org> | 2009-05-26 15:46:24 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-05-26 15:46:24 +0000 |
commit | e3c5bc8d2ebb9f8ab8f4cb64002bc3b8d0e10e37 (patch) | |
tree | 65f84aef7bfb97e14166b4b973f182e4c7a6c0f7 /src/depot_gui.cpp | |
parent | 2a5a8f395c0c71146259433a1a4abe7807d2f8ac (diff) | |
download | openttd-e3c5bc8d2ebb9f8ab8f4cb64002bc3b8d0e10e37.tar.xz |
(svn r16434) -Cleanup: remove some dead code; primarily stuff that can't be reached like break after returns or break after functions that never return (i.e. NOT_REACHED)
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r-- | src/depot_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 512254c12..06fab5c8f 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -541,7 +541,7 @@ struct DepotWindow : Window { case VEH_ROAD: command = CMD_START_STOP_VEHICLE | CMD_MSG(STR_ERROR_CAN_T_STOP_START_ROAD_VEHICLE); break; case VEH_SHIP: command = CMD_START_STOP_VEHICLE | CMD_MSG(STR_ERROR_CAN_T_STOP_START_SHIP); break; case VEH_AIRCRAFT: command = CMD_START_STOP_VEHICLE | CMD_MSG(STR_ERROR_CAN_T_STOP_START_AIRCRAFT); break; - default: NOT_REACHED(); command = 0; + default: NOT_REACHED(); } DoCommandP(v->tile, v->index, 0, command); } break; @@ -991,7 +991,7 @@ struct DepotWindow : Window { case VEH_ROAD: command = CMD_SELL_ROAD_VEH | CMD_MSG(STR_ERROR_CAN_T_SELL_ROAD_VEHICLE); break; case VEH_SHIP: command = CMD_SELL_SHIP | CMD_MSG(STR_ERROR_CAN_T_SELL_SHIP); break; case VEH_AIRCRAFT: command = CMD_SELL_AIRCRAFT | CMD_MSG(STR_ERROR_CAN_T_SELL_AIRCRAFT); break; - default: NOT_REACHED(); command = 0; + default: NOT_REACHED(); } if (!DoCommandP(v->tile, v->index, sell_cmd, command) && is_engine) _backup_orders_tile = 0; |