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
9da49606f7
commit
f214c5b572
@ -148,12 +148,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