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;