(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)

This commit is contained in:
rubidium
2009-05-26 15:46:24 +00:00
parent 68042a6dde
commit d39f442bd0
15 changed files with 30 additions and 36 deletions

View File

@@ -1066,7 +1066,7 @@ void VehicleEnterDepot(Vehicle *v)
case VEH_ROAD: string = STR_NEWS_ROAD_VEHICLE_IS_WAITING; break;
case VEH_SHIP: string = STR_NEWS_SHIP_IS_WAITING; break;
case VEH_AIRCRAFT: string = STR_NEWS_AIRCRAFT_IS_WAITING; break;
default: NOT_REACHED(); string = STR_EMPTY; // Set the string to something to avoid a compiler warning
default: NOT_REACHED();
}
SetDParam(0, v->index);