Commit 04bbe100 authored by Frederik Gladhorn's avatar Frederik Gladhorn Committed by Frederik Gladhorn

Remove dead default branches

Summary:
The switch statements iterated over all possible enum values.
When a new enum value is added, it will generate a compiler warning this way.

Reviewers: davidedmundson

Reviewed By: davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D16480
parent b0717323
......@@ -435,8 +435,6 @@ QModelIndex TabBoxHandler::nextPrev(bool forward) const
case TabBoxConfig::DesktopTabBox:
model = d->desktopModel();
break;
default:
return d->index;
}
if (forward) {
int column = d->index.column() + 1;
......@@ -612,8 +610,6 @@ QModelIndex TabBoxHandler::first() const
case TabBoxConfig::DesktopTabBox:
model = d->desktopModel();
break;
default:
return QModelIndex();
}
return model->index(0, 0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment