UI: Remove unused assignments

This commit is contained in:
Richard Stanway 2022-10-06 23:34:54 +02:00 • committed by Jim
commit daee83373c
6 changed files with 3 additions and 14 deletions

View file

@ -29,7 +29,7 @@ static QWidget *firstWidget(QLayoutItem *item)
return nullptr;
auto n = layout->count();
for (auto i = 0, n = layout->count(); i < n; i++) {
for (auto i = 0; i < n; i++) {
widget = firstWidget(layout->itemAt(i));
if (widget)
return widget;
@ -47,7 +47,6 @@ static QWidget *lastWidget(QLayoutItem *item)
if (!layout)
return nullptr;
auto n = layout->count();
for (auto i = layout->count(); i > 0; i--) {
widget = lastWidget(layout->itemAt(i - 1));
if (widget)