keyboard: Drop dead code
This getGroups() method was not called anywhere for
a long time, the last user was dropped at commit
8fdf47ea5b
("keyboard: Do not create widgetry for
all keyboard groups at once").
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3162>
This commit is contained in:
@@ -2110,18 +2110,6 @@ class KeyboardController extends Signals.EventEmitter {
|
|||||||
this.emit('purpose-changed', purpose);
|
this.emit('purpose-changed', purpose);
|
||||||
}
|
}
|
||||||
|
|
||||||
getGroups() {
|
|
||||||
let inputSources = this._inputSourceManager.inputSources;
|
|
||||||
let groups = [];
|
|
||||||
|
|
||||||
for (let i in inputSources) {
|
|
||||||
let is = inputSources[i];
|
|
||||||
groups[is.index] = is.xkbId;
|
|
||||||
}
|
|
||||||
|
|
||||||
return groups;
|
|
||||||
}
|
|
||||||
|
|
||||||
getCurrentGroup() {
|
getCurrentGroup() {
|
||||||
// Special case for Korean, if Hangul mode is disabled, use the 'us' keymap
|
// Special case for Korean, if Hangul mode is disabled, use the 'us' keymap
|
||||||
if (this._currentSource.id === 'hangul') {
|
if (this._currentSource.id === 'hangul') {
|
||||||
|
Reference in New Issue
Block a user