# HG changeset patch # User tron # Date 1130310734 0 # Node ID 3ed00023e38283c940438f821c125389896b0e71 # Parent a6f1c61fa5d0aea96d5506ad2106c52e7b114879 (svn r3090) Remove long dead pieces of code diff -r a6f1c61fa5d0 -r 3ed00023e382 callback_table.c --- a/callback_table.c Tue Oct 25 19:52:25 2005 +0000 +++ b/callback_table.c Wed Oct 26 07:12:14 2005 +0000 @@ -26,7 +26,6 @@ CommandCallback CcPlaySound10; CommandCallback CcPlaceSign; CommandCallback CcTerraform; -//CommandCallback CcDemolish; CommandCallback CcBuildTown; /* rail_gui.c */ diff -r a6f1c61fa5d0 -r 3ed00023e382 industry_gui.c --- a/industry_gui.c Tue Oct 25 19:52:25 2005 +0000 +++ b/industry_gui.c Wed Oct 26 07:12:14 2005 +0000 @@ -281,9 +281,7 @@ case WE_PAINT: { const Industry *i; StringID str; - // in editor, use bulldoze to destroy industry - // Destroy Industry button costing money removed per request of dominik - //w->disabled_state = (_patches.extra_dynamite && !_networking && _game_mode != GM_EDITOR) ? 0 : (1 << 6); + i = GetIndustry(w->window_number); SetDParam(0, w->window_number); DrawWindowWidgets(w); @@ -429,8 +427,6 @@ { WWT_IMGBTN, RESIZE_NONE, 9, 0, 259, 106, 147, 0x0, STR_NULL}, { WWT_PUSHTXTBTN, RESIZE_NONE, 9, 0, 129, 148, 159, STR_00E4_LOCATION, STR_482C_CENTER_THE_MAIN_VIEW_ON}, { WWT_IMGBTN, RESIZE_NONE, 9, 130, 259, 148, 159, 0x0, STR_NULL}, -// Destroy Industry button costing money removed per request of dominik -//{ WWT_PUSHTXTBTN, RESIZE_NONE, 9, 130, 259, 148, 159, STR_INDUSTRYDIR_DESTROY, STR_482C_DESTROY_INDUSTRY}, { WIDGETS_END}, }; diff -r a6f1c61fa5d0 -r 3ed00023e382 main_gui.c --- a/main_gui.c Tue Oct 25 19:52:25 2005 +0000 +++ b/main_gui.c Wed Oct 26 07:12:14 2005 +0000 @@ -2439,8 +2439,6 @@ case GM_MENU: w = AllocateWindow(0, 0, width, height, MainWindowWndProc, WC_MAIN_WINDOW, NULL); AssignWindowViewport(w, 0, 0, width, height, TileXY(32, 32), 0); -// w = AllocateWindowDesc(&_toolb_intro_desc); -// w->flags4 &= ~WF_WHITE_BORDER_MASK; ShowSelectGameWindow(); break; case GM_NORMAL: diff -r a6f1c61fa5d0 -r 3ed00023e382 rail_gui.c --- a/rail_gui.c Tue Oct 25 19:52:25 2005 +0000 +++ b/rail_gui.c Wed Oct 26 07:12:14 2005 +0000 @@ -738,8 +738,6 @@ { WWT_CLOSEBOX, RESIZE_NONE, 14, 97, 111, 112, 123, STR_0335_6, STR_3050_SELECT_LENGTH_OF_RAILROAD}, { WWT_CLOSEBOX, RESIZE_NONE, 14, 112, 126, 112, 123, STR_0336_7, STR_3050_SELECT_LENGTH_OF_RAILROAD}, -//{ WWT_CLOSEBOX, RESIZE_NONE, 14, 14, 73, 137, 148, STR_02DB_OFF, STR_3065_DON_T_HIGHLIGHT_COVERAGE}, -//{ WWT_CLOSEBOX, RESIZE_NONE, 14, 74, 133, 137, 148, STR_02DA_ON, STR_3064_HIGHLIGHT_COVERAGE_AREA}, { WWT_CLOSEBOX, RESIZE_NONE, 14, 37, 111, 126, 137, STR_DRAG_DROP, STR_STATION_DRAG_DROP}, { WWT_CLOSEBOX, RESIZE_NONE, 14, 14, 73, 152, 163, STR_02DB_OFF, STR_3065_DON_T_HIGHLIGHT_COVERAGE}, { WWT_CLOSEBOX, RESIZE_NONE, 14, 74, 133, 152, 163, STR_02DA_ON, STR_3064_HIGHLIGHT_COVERAGE_AREA}, diff -r a6f1c61fa5d0 -r 3ed00023e382 ship_cmd.c --- a/ship_cmd.c Tue Oct 25 19:52:25 2005 +0000 +++ b/ship_cmd.c Wed Oct 26 07:12:14 2005 +0000 @@ -467,17 +467,12 @@ uint best_length; } PathFindShip; -//extern void dbg_store_path(); - static bool ShipTrackFollower(TileIndex tile, PathFindShip *pfs, int track, uint length, byte *state) { // Found dest? if (tile == pfs->dest_coords) { pfs->best_bird_dist = 0; -// if (length < pfs->best_length) -// dbg_store_path(); - pfs->best_length = minu(pfs->best_length, length); return true; }