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
This commit is contained in:
parent
b07173232b
commit
04bbe10038
1 changed files with 0 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue