removed two unused variables (fixes #856)

This commit is contained in:
Thomas Jentzsch 2021-12-18 09:44:53 +01:00
parent 0d677d1a97
commit 181e02e3a5
2 changed files with 7 additions and 9 deletions

View File

@ -267,14 +267,13 @@ void LauncherDialog::addPathWidgets(int& ypos)
void LauncherDialog::addRomWidgets(int& ypos) void LauncherDialog::addRomWidgets(int& ypos)
{ {
const bool bottomButtons = instance().settings().getBool("launcherbuttons"); const bool bottomButtons = instance().settings().getBool("launcherbuttons");
const int lineHeight = Dialog::lineHeight(), const int fontWidth = Dialog::fontWidth(),
fontWidth = Dialog::fontWidth(), VBORDER = Dialog::vBorder(),
VBORDER = Dialog::vBorder(), HBORDER = Dialog::hBorder(),
HBORDER = Dialog::hBorder(), VGAP = Dialog::vGap(),
VGAP = Dialog::vGap(), buttonHeight = myUseMinimalUI
buttonHeight = myUseMinimalUI ? -VGAP * 2
? -VGAP * 2 : bottomButtons ? Dialog::buttonHeight() : -VGAP * 2;
: bottomButtons ? Dialog::buttonHeight() : -VGAP * 2;
int xpos = HBORDER; int xpos = HBORDER;
WidgetArray wid; WidgetArray wid;

View File

@ -154,7 +154,6 @@ NavigationWidget::PathWidget::PathWidget(GuiObject* boss, CommandReceiver* targe
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void NavigationWidget::PathWidget::setPath(const string& path) void NavigationWidget::PathWidget::setPath(const string& path)
{ {
const int lineHeight = _font.getLineHeight();
const int fontWidth = _font.getMaxCharWidth(); const int fontWidth = _font.getMaxCharWidth();
int x = _x + fontWidth, w = _w; int x = _x + fontWidth, w = _w;
FilesystemNode node(path); FilesystemNode node(path);