Drop unused variables (#19267)

* Drop unused variable in ShortcutKeys.cpp

* Drop unused variable in TitleMenu.cpp
This commit is contained in:
Michał Janiszewski 2023-01-24 10:24:47 +01:00 committed by GitHub
parent d6027a111a
commit be5b7b7f74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 4 deletions

View File

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

View File

@ -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;