Bug 1730759: Remove unreachable return statement from KeyEventHandler::KeyToMask. r=masayuki

This return statement is just a copy of the 'default' case in the preceding
switch statement.  It's redundant and unreachable because every case in the
switch statement has a return statement.

clang correctly warns that it's unreachable, so this patch fixes a clang build
warning.

Differential Revision: https://phabricator.services.mozilla.com/D125595
This commit is contained in:
Daniel Holbert 2021-09-15 02:36:49 +00:00
Родитель 9a5513a7d8
Коммит 01a37fdfe7
1 изменённых файлов: 0 добавлений и 1 удалений

Просмотреть файл

@ -526,7 +526,6 @@ int32_t KeyEventHandler::KeyToMask(int32_t key) {
default:
return cControl | cControlMask;
}
return cControl | cControlMask; // for warning avoidance
}
// static