baseAppView: Remove unused BaseAppView.addItem
Now that BaseAppView does not allow for subclasses to add and remove items directly, the addItem() method can be removed. Remove BaseAppView.addItem(). https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/645
This commit is contained in:
parent
1c172955ee
commit
9c6f558c9e
@ -149,12 +149,6 @@ class BaseAppView {
|
||||
return this._allItems;
|
||||
}
|
||||
|
||||
addItem(icon) {
|
||||
let id = icon.id;
|
||||
this._allItems.push(icon);
|
||||
this._items[id] = icon;
|
||||
}
|
||||
|
||||
_compareItems(a, b) {
|
||||
return a.name.localeCompare(b.name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user