1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00

Remove commented-out code (#12834)

This commit is contained in:
Michael Steenbeek
2020-09-01 20:33:52 +02:00
committed by GitHub
parent f7acb84e42
commit 55722a7ad4
6 changed files with 0 additions and 25 deletions

View File

@@ -423,9 +423,6 @@ rct_window* window_editor_object_selection_open()
*/
static void window_editor_object_selection_close(rct_window* w)
{
// if (!(gScreenFlags & SCREEN_FLAGS_EDITOR))
// return;
unload_unselected_objects();
editor_load_selected_objects();
editor_object_flags_free();

View File

@@ -207,12 +207,6 @@ static void window_install_track_invalidate(rct_window* w)
{
w->pressed_widgets &= ~(1 << WIDX_TOGGLE_SCENERY);
}
// if (w->track_list.var_482 != 0xFFFF) {
// w->disabled_widgets &= ~(1 << WIDX_TRACK_PREVIEW);
// } else {
// w->disabled_widgets |= (1 << WIDX_TRACK_PREVIEW);
// }
}
/**

View File

@@ -438,7 +438,6 @@ static void window_server_list_scrollpaint(rct_window* w, rct_drawpixelinfo* dpi
{
if (screenCoords.y >= dpi->y + dpi->height)
continue;
// if (y + ITEM_HEIGHT < dpi->y) continue;
const auto& serverDetails = _serverList.GetServer(i);
bool highlighted = i == w->selected_list_item;

View File

@@ -597,9 +597,6 @@ static void window_themes_dropdown(rct_window* w, rct_widgetindex widgetIndex, i
window_invalidate_all();
_colour_index_1 = -1;
_colour_index_2 = -1;
// if (gCurrentTheme >= 2)
// themes_save_preset(gCurrentTheme);
}
break;
case WIDX_THEMES_PRESETS_DROPDOWN:
@@ -708,8 +705,6 @@ void window_themes_scrollmousedown(rct_window* w, int32_t scrollIndex, const Scr
void window_themes_scrollmouseover(rct_window* w, int32_t scrollIndex, const ScreenCoordsXY& screenCoords)
{
// if (_selected_tab == WINDOW_THEMES_TAB_SETTINGS)
// return;
}
static void window_themes_textinput(rct_window* w, rct_widgetindex widgetIndex, char* text)

View File

@@ -90,11 +90,6 @@ exitcode_t CommandLine::HandleCommandConvert(CommandLineArgEnumerator* enumerato
WriteConvertFromAndToMessage(sourceFileType, destinationFileType);
gOpenRCT2Headless = true;
// if (!openrct2_initialise())
// {
// Console::Error::WriteLine("Error while initialising OpenRCT2.");
// return EXITCODE_FAIL;
// }
try
{

View File

@@ -457,12 +457,7 @@ static std::vector<TitleCommand> LegacyScriptRead(utf8* script, size_t scriptLen
else if (_stricmp(token, "LOADSC") == 0)
{
command.Type = TITLE_SCRIPT_LOADSC;
// Confirm the scenario exists
// source_desc desc;
// if (ScenarioSources::TryGetByName(part1, &desc))
//{
safe_strcpy(command.Scenario, part1, sizeof(command.Scenario));
//}
}
}
if (command.Type != TITLE_SCRIPT_UNDEFINED)