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)
{
const bool bottomButtons = instance().settings().getBool("launcherbuttons");
const int lineHeight = Dialog::lineHeight(),
fontWidth = Dialog::fontWidth(),
VBORDER = Dialog::vBorder(),
HBORDER = Dialog::hBorder(),
VGAP = Dialog::vGap(),
buttonHeight = myUseMinimalUI
? -VGAP * 2
: bottomButtons ? Dialog::buttonHeight() : -VGAP * 2;
const int fontWidth = Dialog::fontWidth(),
VBORDER = Dialog::vBorder(),
HBORDER = Dialog::hBorder(),
VGAP = Dialog::vGap(),
buttonHeight = myUseMinimalUI
? -VGAP * 2
: bottomButtons ? Dialog::buttonHeight() : -VGAP * 2;
int xpos = HBORDER;
WidgetArray wid;

View File

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