From be5b7b7f74e1e07992f07f59efd1cc538b6c1bf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Tue, 24 Jan 2023 10:24:47 +0100 Subject: [PATCH] Drop unused variables (#19267) * Drop unused variable in ShortcutKeys.cpp * Drop unused variable in TitleMenu.cpp --- src/openrct2-ui/windows/ShortcutKeys.cpp | 2 -- src/openrct2-ui/windows/TitleMenu.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/openrct2-ui/windows/ShortcutKeys.cpp b/src/openrct2-ui/windows/ShortcutKeys.cpp index 47e2dfa2e6..0c94f81ead 100644 --- a/src/openrct2-ui/windows/ShortcutKeys.cpp +++ b/src/openrct2-ui/windows/ShortcutKeys.cpp @@ -370,7 +370,6 @@ private: // Create list items with a separator between each group _list.clear(); - size_t index = 0; std::string group; for (const auto* shortcut : shortcuts) { @@ -395,7 +394,6 @@ private: ssp.CustomString = shortcut->CustomName; ssp.Binding = shortcut->GetDisplayString(); _list.push_back(std::move(ssp)); - index++; } Invalidate(); diff --git a/src/openrct2-ui/windows/TitleMenu.cpp b/src/openrct2-ui/windows/TitleMenu.cpp index 0014fd5cae..9458186e26 100644 --- a/src/openrct2-ui/windows/TitleMenu.cpp +++ b/src/openrct2-ui/windows/TitleMenu.cpp @@ -97,7 +97,6 @@ public: widgets[WIDX_MULTIPLAYER].type = WindowWidgetType::Empty; #endif - WidgetIndex i = 0; int32_t x = 0; for (Widget* widget = widgets; widget != &widgets[WIDX_NEW_VERSION]; widget++) { @@ -108,7 +107,6 @@ public: x += MenuButtonDims.width; } - i++; } width = x; widgets[WIDX_NEW_VERSION].right = width;